Closed Bartmax closed 7 years ago
using the ResponseCachingMiddleware with VaryByQueryKeys
ResponseCachingMiddleware
VaryByQueryKeys
[ResponseCache(CacheProfileName = "DefaultCache", VaryByQueryKeys = new string[] { "id" })]
open chrome inspector tick disable cache go to page that uses a ResponseCache with VaryByQueryKeys
ResponseCache
it throws: InvalidOperationException: 'VaryByQueryKeys' requires the response cache middleware.
closing the inspector or untick disable cache work fine.
Using fiddler, adding Pragma: no-cache header is enough to make the site throw an exception.
Pragma: no-cache
Confirmed here.
-
bad repo, mind comment again here: https://github.com/aspnet/ResponseCaching/issues/85
using the
ResponseCachingMiddleware
withVaryByQueryKeys
open chrome inspector tick disable cache go to page that uses a
ResponseCache
withVaryByQueryKeys
it throws: InvalidOperationException: 'VaryByQueryKeys' requires the response cache middleware.
closing the inspector or untick disable cache work fine.
Using fiddler, adding
Pragma: no-cache
header is enough to make the site throw an exception.