How to set max-age caching directive in ASP.NET MVC 3
If this problem can be solved by google it please provide a lin开发者_运维百科k, I tried by could not find any tutorial.
Thanks.
I'm pretty sure this is controlled by the Duration option e.g.
[OutputCache(Duration=3600)]
See here for the full list: http://msdn.microsoft.com/en-us/library/system.web.mvc.outputcacheattribute.aspx
精彩评论