Cache on my nerves!

liunx

Guest
the problem with me is that whenever i publish the newer or latest version of my website, i first see the older version saved in the cache...is there any code which i can insert so that every time the visitors open my website, they get the latest version loaded from the server???:mad:<!--content-->You can prevent caching by using these three Meta tags:<br />
<br />
<meta http-equiv="Pragma" content="no-cache"><br />
<meta http-equiv="Cache-Control" content="no-cache"><br />
<meta http-equiv="Expires" content="0"><!--content--><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><br />
<br />
but IE has issues with it as it is a NS tag<!--content-->So would this work for IE and Netscape both???<br />
<br />
<meta http-equiv="Pragma" content="no-cache"><br />
<meta http-equiv="Cache-Control" content="no-cache"><br />
<meta http-equiv="Expires" content="0"><!--content-->I believe so<!--content-->Rather change the content of "Expires" to -1. That doesn't save the page in the history at all, except for back/forward buttons.<!--content-->Dear All...<br />
<br />
I used the following script (with IE 6.0) but it isnt working. The new version always needs a refresh:confused: <br />
<meta http-equiv="Pragma" content="no-cache"><br />
<meta http-equiv="Cache-Control" content="no-cache"><br />
<meta http-equiv="Expires" content="0">QUOTE] <br />
<br />
Is there any altaernative???<!--content-->Also plz tell me what should be the arrangement of METAs???<!--content-->you didn't chagne the Expires to -1 and wha tdo you mean arragment of META's. there is no arrangement.<!--content-->am sorry...was confused!!!<!--content-->I saw the following code in one of the websites. I think, it works for their website. What do u think? Which one is better. One suggested above or this one?<br />
<br />
<meta http-equiv="Expires" content="Tue, 01 Jan 1985 00:00:01 GMT"><br />
<meta http-equiv="Pragma" content="no-cache"> <br />
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"> <br />
Secondly what does <meta http-equiv="Expires" content="Tue, 01 Jan 1985 00:00:01 GMT">mean??<!--content-->the date is the same or should be the same as saying -1<br />
<br />
try it...<!--content-->
 
Back
Top