You can use the following piece of script at the top of every page to prevent it from going to cache.
<%
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control","no-cache,must revalidate"
Response.Expires =-1
%>
This will work only for ASP page.
To prevent an htm page from going to cache, the following meta tag will help.
<META HTTP-EQUIV="Expires" CONTENT="0">. But this is not working in old browsers (especially netscape and opera).
|