Jump to content

Refresh on load


Jonob

Recommended Posts

Hi all,

 

I have an issue where the user closes his browser with tabs still visible. When he re-opens the browser, the tabs are already there, and seem to load my page from cache. Instead, I need to make sure that the page is properly reloaded.

 

I have ofcourse tried the following, which doesnt seem to cover the above scenario:

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

 

Is there a fail safe way to force the browser to refresh the page once on load. This should work irrespective of how that load originated; i.e. user types in url, user opens bookmark, page opens automatically in tab when browser starts, etc.

 

Thanks for any advice you can give.

 

(Btw, I am a complete noob with javascript, so go easy on me please  :-\ )

Link to comment
https://forums.phpfreaks.com/topic/189144-refresh-on-load/
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.