Jump to content

[SOLVED] Always loading the newest version of a page...


yoi55

Recommended Posts

I run the web site for my Boy Scout Troop and it has different pages for each adult leader (scoutmaster, assistant, etc.).  In each of these pages, they put news items and things that need to be done by the next meeting.  My problem is that sometimes when people go to these pages, it doesn't grab the newest version of the page and needs to be manually refreshed to get it.  I want a way to automatically retrieve the newest version of the page off the server every time the page is loaded.  Somebody told me that PHP might be able to accomplish this, but I have been unable to find out exactly how (if it is indeed possible).

 

I know that a preference can be set in the browser to have it get the newest version of the page on every visit, but I don't want to have to try and tell all the parents how to do this and also take the chance of them breaking their browser.

Ok, I put that code as follows:

 

<html>
<?php
header("Cache-Control: no-cache, must-revalidate");
?>
...

 

But it still does not load the newest version.  I manually refreshed the page to make sure it got the PHP code then I made changes to the page.  I clicked on the link everyone will use to get to the page, but it did not load the new version...I still have to manually refresh it.

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.