Take the following lines of code that would work fine in a c# asp.net file:
Response.Cache.SetExpires(DateTime.Now.AddSeconds(300));
Response.Cache.SetCacheability(HttpCacheability.Public);
Can I set these in some way in global.asax so that by default my entire application will support 300 second public caching?
Yes you can do that, probably on
but then you can not removed so easy… if any pages need to.
(I have include a page test, but just to see it, you can chose and test, if you won everything to have this header.)