| 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) for more information on caching and other caching methods see http://www.vbdotnetheaven.com/UploadFile/hariganish/ASPNETCachingVB11152005235434PM/ASPNETCachingVB.aspx |