How to set the caching header in VB.NET/ASP.NET


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)