Prevent Web Browser Caching

Prevent Web Browser Caching
How to make use of HTTP headers to control the caching of Web pages in ASP and IIS, known to work with Internet Explorer.
2.Response.Expires = -1
3.Response.Buffer = True
4.Response.CacheControl = "no-cache"
5.Response.ExpiresAbsolute = Now() - 1
6.Response.AddHeader "cache-control", "private"
7.Response.AddHeader "Pragma", "no-cache"

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top