The information in this article applies to:
SUMMARYThe purpose of this article is to describe how to control caching in the three applications that can control the caching of a Web page. It will not go into thorough detail for all, but will provide references to articles where you can find more details. MORE INFORMATION
Caching of Web Pages can happen in three separate entities in a Web
environment. When you think about caching, you usually think about the Web
pages cached locally in your temporary Internet files on your local machine
as a result of having visited the page. But caching can also occur within
the Internet Information Server (IIS) Server, and if a proxy server is
present, it can be configured to cache the pages. This article describes
how to prevent client browser caching and how to configure IIS 4.0 server
caching. For more information please see the references section of this
article.
Browser CachingBy default, the browser caches a visited Web page and stores it in the temporary Internet files of the profile that was used to log into the computer. If users of the browser do not want to be presented with cached pages when requested, they can define how the Internet Explorer browser will request content by following these steps:
IIS 4.0 CachingISAPI applications (Active Server Pages Web pages) can be cached on Internet Information Server. When you create a new IIS 4 application, caching of ISAPI Applications is on by default. Use these steps to disable caching:
You have now prepared your IIS Application so that it won't cache your ASP pages. But this alone is not enough. At the top of the .asp page that you do not want cached, add the following line:
Proxy Server CachingTo prevent the caching of Active Server Pages at the proxy server, add the following lines at the top of your .asp page:
To Enable caching, add the following to your page:
REFERENCES
For additional information, please see the following articles in the
Microsoft Knowledge Base:
Q165150 : How to Use Pragma: No-cache with IIS and IE
Keywords : kbGrpASP |
Last Reviewed: June 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |