Knowledge Base Articles » KB100204: ASP Pages Hot off the Server: Prevent Cached Pages from Loading.
Have a page that needs to be fresh from the server every time it is loaded? With Active Server Pages this is not a problem, even if the browser has caching enabled, or if the page is navigated to using the browser's back or forward button. This code will force the ASP page to be reloaded from the server every time it is visited.
Simply add the following two lines of code to the top of your ASP page, before any HTML:
<%
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-store"
%>
For more information on the Active Server Page Response Object, please visit
the
DevGuru online
ASP
reference.