My one action has the following attributes:
[OutputCache(Location = System.Web.UI.OutputCacheLocation.Server, Duration = 300, VaryByParam = "*")]
and the other with
[OutputCache(Location = System.Web.UI.OutputCacheLocation.None)]
and both of them use the same kind.
In a view or even in an action method, how do you determine what caching is? is it a cached page or not? I tried looking at Response.Headers (only has “Server: Microsoft-IIS / 7.0), and Response.CacheControl is“ private ”in both cases.
source
share