Shoutbox

auto reload code? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: auto reload code? (/showthread.php?tid=45338)

auto reload code? by King For A Day on 05-26-2005 at 08:18 PM

im looking for a simple web code that can make a page reload as it opens so people dont see the cached page. the best i have manged to find is one that refreshes the page after however log u set it, this is usless for me,

can anyone help, im sure it will be pretty simple but i cant find it


RE: auto reload code? by Veggie on 05-26-2005 at 08:23 PM

if it is a PHP page, you can set the header() so that pages arent cached in the first place, cant remember the exact values, if you need them ill look into it.


RE: auto reload code? by Dempsey on 05-26-2005 at 08:25 PM

quote:
Originally posted by php.net
code:
<?php
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

// HTTP/1.0
header("Pragma: no-cache");
?>


RE: auto reload code? by King For A Day on 05-26-2005 at 08:26 PM

its not its just html i dont know php


RE: auto reload code? by CookieRevised on 05-26-2005 at 08:33 PM

related html meta tags (<- what you should've googled ;)):

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">
<META HTTP-EQUIV="REFRESH" CONTENT="15;URL=http://www.blah.com/">

for detailed info see http://www.i18nguy.com/markup/metatags.html for example

but also see
http://support.microsoft.com/kb/q222064/
http://support.microsoft.com/kb/234067/
http://support.microsoft.com/kb/165150/


RE: auto reload code? by Jhrono on 05-26-2005 at 08:58 PM

Some Hosting providers dont like auto refreshing pages...so be aware :P


RE: auto reload code? by King For A Day on 05-26-2005 at 10:16 PM

quote:
Originally posted by CookieRevised

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">
<META HTTP-EQUIV="REFRESH" CONTENT="15;URL=http://www.blah.com/">


the onlt one i found was for refreshing at timed intervals,

but thanks any way