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

Posted by Stewart Robinson on Stack Overflow See other posts from Stack Overflow or by Stewart Robinson
Published on 2010-03-24T17:17:33Z Indexed on 2010/03/24 18:03 UTC
Read the original article Hit count: 159

Filed under:
|

I have these lines in my global.asax (basically because of http://stackoverflow.com/questions/2469348/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);

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#