开发者

Does setting HttpCacheability.Public also cache the page on the server?

开发者 https://www.devze.com 2022-12-24 18:05 出处:网络
I have these lines in my global.asax (basically because of Can I add my caching lines to global.asax?)

I have these lines in my global.asax (basically because of Can I add my caching lines to global.asax?)

The thing I want to now understand is whether this code purely adds the HTTP headers to the page or does it also make .Net cache this page on the server for 300 seconds?

Response.Cache.SetExpires(DateTime.Now.AddSeconds(300));开发者_运维问答
Response.Cache.SetCacheability(HttpCacheability.Public);


Your page will be stored in output cache, too. Are you sure you want to do this for every page on the site?

KB article

0

精彩评论

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