/ Published in: ASP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<% Response.Expires = -1 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" %> 'Or if thats too long winded then <% Response.Expires = -1000 %> 'Abbreviated version (as per http://www.devx.com/vb2themax/Tip/18635) <% Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "no-cache" Response.Expires = -1 %>
URL: http://www.codefixer.com/tutorials/stop_caching.asp