Cache Codes!

liunx

Guest
Hi every one! Can any 1 tell me the meaning or purpose of the following code line? Is it realtes with Cahe?<br />
<br />
<meta http-equiv="Expires" content="Tue, 01 Jan 1985 00:00:01 GMT"><br />
<br />
Secondly, my site's index.htm page automatically redirects to the latest edition updated daily. Which of the following codes prevents the cache best:<br />
<br />
<HTML><HEAD><br />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"><br />
<META HTTP-EQUIV="Expires" CONTENT="-1"><br />
<META HTTP-EQUIV = "Refresh" CONTENT = "0; URL=http://pakistantimes.net/2003/12/20/index.htm"><br />
</HEAD><BODY><br />
</BODY><br />
</HTML><br />
<br />
<br />
-OR-<br />
<br />
<HTML><HEAD><br />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"><br />
<META HTTP-EQUIV="Expires" CONTENT="-1"><br />
</HEAD><BODY><br />
<META HTTP-EQUIV = "Refresh" CONTENT = "0; URL=http://pakistantimes.net/2003/12/20/index.htm"><br />
</BODY><br />
</HTML><br />
<br />
-OR-<br />
<br />
<META HTTP-EQUIV = "Refresh" CONTENT = "0; URL=http://pakistantimes.net/2003/12/20/index.htm"><br />
<br />
-OR-<br />
<br />
any code using <br />
<br />
<META http-equiv="pragma" content="no-cache"><br />
<br />
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><br />
<br />
-OR- <br />
kindly suggest an alternative. <br />
<br />
Have a great time and Happy Holidayz!<!--content-->your best bet is this<br />
<br />
<META http-equiv="pragma" content="no-cache"><br />
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><br />
<br />
IE doesn't understand pragma as that is a NS attribute. so that code above will cover both. but I jsu thave to say, the user can override this if they want so it doesn't do you an good. having a refresh meta tag calling the same page will jus tkeep refreshing that said page, the user will never see the page.<!--content-->
 
Back
Top