How do I prevent page caching on a Classic ASP app?

TatStaith

New Member
I need some pages not to be cached on a Classic ASP app, but I've tried every possible combination of headers and nothing seems to work:\[code\]Response.Expires = -1Response.ExpiresAbsolute = Now() - 1Response.CacheControl = "no-cache; private; no-store; must-revalidate; max-stale=0; post-check=0; pre-check=0; max-age=0"Response.AddHeader "Cache-Control", "no-cache; private; no-store; must-revalidate; max-stale=0; post-check=0; pre-check=0; max-age=0" ' Same as previous line, I know, just in case.Response.AddHeader "Pragma", "no-cache"Response.AddHeader "Expires", "-1"\[/code\]I've also tried restarting both the website and IIS, to no avail. When I leave the page and return to it using the browser's back button, it doesn't reload.What am I missing here?
 
Back
Top