apache - Add Expire headers to ASP.NET? -


How do I programmatically add termination headers? I am not using IIS, I want to do it in ASP.net or I would like to do it with Apache, which is what I am doing.

view

  response. Cash. Set Excerpts (Datetime. Now.AddSeconds (60)); Response.Cache.SetCacheability (HttpCacheability.Public); Response.Cache.SetValidUntilExpires (true);  

If you set the end of the program for a page, you will also have to set the cached-control header for the cached page. To do this, call the SetCacheability method and make it HttpCacheability calculation value public


Comments

Popular posts from this blog

google indexing -

php - How to paginate multiple results in CakePHP? -

wpf - Converter stops filter working -