OutputCache Location=Client does not appear to work

前端 未结 1 488
一个人的身影
一个人的身影 2020-12-10 02:02

I am trying to use the OutputCache attribute in my MVC app and it doesn\'t appear to work when I use OutputCacheLocation.Client:

pu         


        
相关标签:
1条回答
  • 2020-12-10 02:44

    If you hit F5 you are evicting the client cache. The way client cache is supposed to work is that you have links on the site pointing to the Client action from some other views and when the user clicks on those links the cached version will get served (assuming of course he does that in the interval for which the page is cached).

    0 讨论(0)
提交回复
热议问题