kittybagheera
01-04-2006, 05:04 PM
I'm in the process of re-building my site, so there are changes every day or so. How can I make it so that when ppl view a page on the site, they are always seeing the most updated version?
|
View Full Version : Auto refresh page? kittybagheera 01-04-2006, 05:04 PM I'm in the process of re-building my site, so there are changes every day or so. How can I make it so that when ppl view a page on the site, they are always seeing the most updated version? Arwen 01-04-2006, 06:46 PM If you save your updates, your visitors will always see them. kittybagheera 01-04-2006, 08:11 PM Really? I know sometimes when I update a page, then go to that page, I see it as it was before the update. To see the changes I need to click 'refresh'. djou 01-04-2006, 08:23 PM This is because of cache. There is a meta tag that keeps it from happening, but it might also slow loading time. Cache is what saves a webpage into a person's temporary internet files in order to reduce loading time in the future. Sometimes, when you view a site that is in your cache, you see the old version. <meta http-equiv="cache-control" content="no-cache"> iTom 01-04-2006, 08:51 PM You can also use PHP: <?php header("Cache-Control: no-cache, must-revalidate"); ?> Place at top of your files, making sure the extension is .php. u suck i dont 01-17-2006, 06:02 PM ok here is a code that should automatically update ur site once a day <HEAD> <script type="text/javascript"> <!-- Begin /* This script and many more are available free online at The JavaScript Source!! http://javascript.internet.com Created by: Lee Underwood Because this is a true refresh, you might want to put a notice on the page that it refreshes every "X" minutes */ function reFresh() { location.reload(true) } /* Set the number below to the amount of delay, in milliseconds, you want between page reloads: 1 minute = 60000 milliseconds. */ window.setInterval("reFresh()",86400000); // End --> </script> </HEAD> <p><center> <font face="arial, helvetica" size"-2">Free JavaScripts provided<br> by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </center><p> GOOD LUCK! and i hope that helps |