How to Use Pragma: No-cache with IIS and IE

Article translations Article translations
Article ID: 165150 - View products that this article applies to.
This article was previously published under Q165150
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:
http://www.microsoft.com/technet/security/prodtech/IIS.mspx
Expand all | Collapse all

SUMMARY

To prevent Microsoft Internet Explorer (IE) clients from caching web pages, it may be necessary to use the Pragma: No-cache header.

MORE INFORMATION

The following script code can be used in a Microsoft Active Server Page (ASP) to insert the Pragma: No-cache tag into the HTTP header.

NOTE: This script code MUST be the first line of the ASP file.
<% Response.AddHeader "Pragma", "No-Cache" %>
				

Properties

Article ID: 165150 - Last Review: June 23, 2005 - Revision: 1.1
APPLIES TO
  • Microsoft Internet Information Server 3.0
Keywords: 
kbhowto kbinterop KB165150
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com