![]() | ||||
|
Search:
Advanced search
|
Browse by category:
|
Glossary | | | Ask question |
| How do I stop browsers & proxy servers from caching my web pages? | ||||
Caching of Web Pages can happen in 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 a proxy server if it is present. This article describes how to prevent client browser caching and proxy caching.
Browser Caching By 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: Open Internet Explorer 4.x. From the View menu, click Internet Options. Click the General tab. Click the Settings button. Select "Every visit to the page" for how often to check for newer versions of stored pages. But having all of your users do this is unreliable, and the above example describes only how to do this on one of many different browsers. To programmatically prevent a Web page from caching on the client, add the following line of code to the Meta section of your Web page: Proxy Server Caching To prevent the caching of Active Server Pages at the proxy server, add the following lines at the top of your .asp page: |
||||