View Full Version : prevent web pages from caching
10-15-2002, 02:46 AM
Can I use the Meta tag to stop the web pages from caching? thanks
10-15-2002, 03:31 AM
It's not very reliable, infact I don't even think it works, but you can use this:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
10-15-2002, 04:41 AM
I heard somewhere that the Pragma one only works on Netscape... I have seen this one in tutorials before:
<meta http-equiv="Cache-Control" content="no-cache">
I think that IE doesn't really listen to any of it though. hmm...
10-15-2002, 09:24 AM
http-equiv meta tags are generally supposed to emulate HTTP headers usually sent by the server. That's right - they are unreliable and often wont work at all. Anyway, try these:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> - for HTTP 1.0 legacy protocol
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"> - not sure if they can be used in the same meta tag, or You'll have to write separate ones... As true HTTP header, they can be sent together...
<meta http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT"> - a date in the past...
10-15-2002, 03:55 PM
Caching Tutorial for Web Authors and Webmasters
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.