What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » auto reload code?

auto reload code?
Author: Message:
King For A Day
Full Member
***

Avatar
Vince Noir: King Of the Mods

Posts: 451
Reputation: 16
35 / Male / –
Joined: Dec 2004
Status: Away
O.P. auto reload code?
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
[Image: smaller6mh.png]
05-26-2005 08:18 PM
Profile E-Mail PM Web Find Quote Report
Veggie
Full Member
***

Avatar

Posts: 415
Reputation: 21
37 / Male / Flag
Joined: Sep 2004
RE: auto reload code?
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.
05-26-2005 08:23 PM
Profile E-Mail PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: auto reload code?
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");
?>

SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
05-26-2005 08:25 PM
Profile E-Mail PM Web Find Quote Report
King For A Day
Full Member
***

Avatar
Vince Noir: King Of the Mods

Posts: 451
Reputation: 16
35 / Male / –
Joined: Dec 2004
Status: Away
O.P. RE: auto reload code?
its not its just html i dont know php
[Image: smaller6mh.png]
05-26-2005 08:26 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: auto reload code?
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/


This post was edited on 05-26-2005 at 08:36 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-26-2005 08:33 PM
Profile PM Find Quote Report
Jhrono
Veteran Member
*****


Posts: 1791
Reputation: 25
32 / Male / Flag
Joined: Jun 2004
RE: auto reload code?
Some Hosting providers dont like auto refreshing pages...so be aware :P
05-26-2005 08:58 PM
Profile E-Mail PM Find Quote Report
King For A Day
Full Member
***

Avatar
Vince Noir: King Of the Mods

Posts: 451
Reputation: 16
35 / Male / –
Joined: Dec 2004
Status: Away
O.P. RE: auto reload code?
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
[Image: smaller6mh.png]
05-26-2005 10:16 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On