Closed arc95 closed 6 years ago
Hi @klings. Which HTTP no-cache headers does this filter set?
filters.Add(new SetNoCacheHttpHeadersAttribute());
Wondering if it sets these:
HttpContext.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1)); HttpContext.Response.Cache.SetValidUntilExpires(false); HttpContext.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches); HttpContext.Response.Cache.SetCacheability(HttpCacheability.NoCache); HttpContext.Response.Cache.SetNoStore();
Thank you.
It's documented here: https://docs.nwebsec.com/en/latest/nwebsec/Configuring-cache-headers.html
Pretty much what your code indicates, but it will also set the the Pragma: no-cache header.
Pragma: no-cache
Hi @klings. Which HTTP no-cache headers does this filter set?
Wondering if it sets these:
Thank you.