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

ID: Q165150


The information in this article applies to:
  • Microsoft Internet Information Server version 3.0


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" %> 

Keywords : kbinterop iishowto
Version : Winnt:3.0
Platform : winnt
Issue type : kbhowto


Last Reviewed: June 24, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.