Jump to content

[SOLVED] Force Reload


ShaolinF

Recommended Posts

This is incorrect:

If you're talking about a page reload, than no. You would have to use javascript.

 

header("Refresh:5; index.php");  //refresh to new location after 5 seconds, or current location
header("Location: index.php");  //go instantly to new page without loading the current page

Link to comment
https://forums.phpfreaks.com/topic/59168-solved-force-reload/#findComment-293897
Share on other sites

If you mean you don't want the browser to use a cached page, you can put a pragma: no-cache meta tag in your HTML, or use HTTP headers.

 

Google "cache-control" and "pragma no cache" for more information.

 

And see these:

 

http://www.mnot.net/cache_docs/

http://www.htmlgoodies.com/beyond/reference/article.php/3472881

[see Section 14.9] http://www.faqs.org/rfcs/rfc2616

Link to comment
https://forums.phpfreaks.com/topic/59168-solved-force-reload/#findComment-293949
Share on other sites

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.