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");

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.

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.