开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜