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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.