Hello,
mythz very quickly answered my original question on SO (link below in case others are interested), but I had a follow up question that’s more specific.
I am trying access the cacheInfo for a request in a GlobalRequestFilter, but it is always null. In the code below, ci is always null. The same code works as a response filter, but does not solve my original problem (presumably because the incorrect cache key has already been looked up in the cache).
this.GlobalRequestFilters.Add((req, res, responseDto) =>
{
var ci = (CacheInfo)req.GetItem(Keywords.CacheInfo);
});
Original question: regarding how to change the cache key of the url-based CacheControl attribute- :