开发者

How to set max-age caching directive in ASP.NET MVC 3

开发者 https://www.devze.com 2023-03-27 22:50 出处:网络
If this problem can be solved by google it please provide a lin开发者_运维百科k, I tried by could not find any tutorial.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消