我有一个操作,具有以下属性:
[OutputCache(Location = System.Web.UI.OutputCacheLocation.Server, Duration = 300, VaryByParam = "*")]
还有一个
和另一个
[OutputCache(Location = System.Web.UI.OutputCacheLocation.None)]
它们都使用相同的视图(View)。
在视图(View)中,甚至在Action方法中,我如何确定缓存是什么?即缓存页面是否被缓存?我尝试查看响应头(Response.Headers)(只有"Server: Microsoft-IIS/7.0"),而Response.CacheControl在两种情况下均为"private"。