How to clear the cache
Please provide me some code in VB.net to clear the cache from web page
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niradhip ChakrabortyPosted May 23, 2008, 7:09 PM
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Expires = 0
Response.ExpiresAbsolute = Convert.ToDateTime(DateTime.Today.AddDays(-1))
Response.AddHeader("pragma", "no-cache")
Response.AddHeader("cache-control", "private")
Response.CacheControl = "no-cache"