What does this do?

<meta http-equiv="pragma" content="no-cache"></meta> <br />
<br />
I think that it empties the cache of every page that it is located in but am not sure and wanted to be.<br />
<br />
Thanks!<!--content-->it doesn't actually empty the cache-it tells the browser NOT to cache THIS page. may mot work in all browsers.<!--content-->Thank you very much, doctor!<!--content-->That particular statement prevents IE clients cacheing pages on MS IIS servers. To prevent cacheing on all browsers and servers you need something like the following.<br />
<br />
<br />
<?<br />
header("Expires: Mon, 26 Jul 1997 01:00:00 GMT");<br />
header("Last-Modified: ". gmdate("D, d M Y H:i:s"). " GMT");<br />
header("Cache-Control: no-cache, must-revalidate");<br />
header("Cache-Control: post-check=0,pre-check=0");<br />
header("Cache-Control: max-age=0");<br />
header("Pragma: no-cache");<br />
?><br />
<br />
<br />
<br />
The above example is for php.<!--content-->Originally posted by torrent <br />
That particular statement prevents IE clients cacheing pages on MS IIS servers. To prevent cacheing on all browsers and servers you need something like the following.<br />
<br />
<br />
Torrent, that is not correct. The original code is HTML, and is meant for all browsers. There is an ASP specific code meant for PWS/ IIS servers... as there no-cache codes for php/ JSP/ COLDfusion and so on.<br />
<br />
Having said that the original code is NOT IIS/ MS/ IE specific... it does have bugs. here (<!-- m --><a class="postlink" href="http://htmlgoodies.earthweb.com/beyond/nocache.html">http://htmlgoodies.earthweb.com/beyond/nocache.html</a><!-- m -->) is a good article on no-cacheing your web pages.<!--content-->Tis a good article :)<br />
Tx.<!--content-->
 
Back
Top