Jump to content

how can I make my webpage get the newest page?


shedokan

Recommended Posts

That would cause no cache to occure although this can be abit tough on your server if you get alot of hits in one go then it would have been easier for the browser to get the cache'd page. you can do the following

 

Set an expiry for your pages to be cache'd and then updated after that date.

set when the page was last updated which is then checked against another value to see if the new page shoud be retreived from the server.

 

 

If you don't want your pages cached at all then

 

 

header ("Last-Modified: Wed,21 Nov 2006 01:41:00 GMT");

 

header ("Expires: Mon,26 Jul 1997 05:00:00 GMT");

 

header ("Pragma: no-cache");

 

header ("Cache-Control: no-cache");

Link to comment
Share on other sites

I do not see how your pages are catching that much if your only updating your content once a day. You could create an JavaScript or AJAX script that would re-query your page at specific time. I would just create php no-cache header and you could try to create a javascript preloader for your images, but the no-cache header may not let them be preloaded.

Link to comment
Share on other sites

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.