Stop your asp pages caching

Category »  ASP
Posted By Guido on 24 March 2006
Comments   |   Print   |   Mail it
Stop your asp pages caching

Place this code at the top of your asp page for it to work.

[%
Response.ExpiresAbsolute = #2003-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, must-revalidate"
%]

Replace the [] with <> if you find that the page is caching then it's IIS that's doing it!



Powered by Active News