How to instruct web browsers NOT to cache pages?

I have a caching problem with Internet Explorer 6.0, and I want to tell the browser not to cache the requested page.

Additional information: there is a random token on my page that prevents reloading the site and posting the same information twice or more.

If you are now adding a bookmark to this page, the browser should be instructed to update the site, each time it requests it.

Firefox 3.0.5 does it right, but IE 6.0 stores a random token in the cache.

I have included the following meta tags on the affected page:

<meta http-equiv="cache-control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no-cache">

Any ideas? Thanks in advance!

+3
source share
2

googleable , , , fwiw (#):

Response.AppendHeader("Cache-Control", "no-cache"); //HTTP 1.1
Response.AppendHeader("Cache-Control", "private"); // HTTP 1.1
Response.AppendHeader("Cache-Control", "no-store"); // HTTP 1.1
Response.AppendHeader("Cache-Control", "must-revalidate"); // HTTP 1.1
Response.AppendHeader("Cache-Control", "max-stale=0"); // HTTP 1.1 
Response.AppendHeader("Cache-Control", "post-check=0"); // HTTP 1.1 
Response.AppendHeader("Cache-Control", "pre-check=0"); // HTTP 1.1 
Response.AppendHeader("Pragma", "no-cache"); // HTTP 1.0 
Response.AppendHeader("Expires", "Wed, 09 Jun 1993 00:00:00 GMT"); // HTTP 1.0
+4

, HTTP- , , - HTML.

0

Source: https://habr.com/ru/post/1702688/


All Articles