Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project



A100204: 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.

The Guru

   


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information
knoxville photographer
knoxville wedding photographer