ASP Tutorials and Code 2


Prevent Web Browser Caching


  1. <%
  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"
  8. %>





Written by