CLASSIC ASP-Preventing a Page from Being Cached by Browsers and Proxy Servers
Posted by:
adcertpoint
(Moderator)
Date: April 29, 2020 04:46PM
Add the following code to the top of your ASP page to prevent it from being cached by the browser or any intermediate proxy or caching server. This will force the browser to retrieve a new copy of the page, everytime it needs to display it.
<%
Response.ExpiresAbsolute = #1/1/1980#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, must-revalidate"
%>