|
How to set the caching header in VB.NET/ASP.NET |
|
|
|
|
Thursday, 26 February 2009 |
To add a cache header in VB.NET you can use
Response.Cache.SetExpires(DateTime.Now.AddSeconds(360))Response.Cache.SetCacheability(HttpCacheability.Public)Response.Cache.SetSlidingExpiration(True)
|