[FX.php List] [OFF] Reload page in Safari after back button?

Joel Shapiro jsfmp at earthlink.net
Wed Feb 29 16:11:35 MST 2012


Hi all!

Safari, as far as I know, is the only browser that doesn't automatically reload a page after clicking the Back button.  (e.g.: Echo some $_SESSION vars on page1, update those vars on page2, then click the Back button.  In Safari, page1 still shows the original vars until you click Reload.  All other browsers show the updated vars as soon as you click Back)

I found one fix: "Setting onunload="" in the body-tag causes Safari to invalidate the page and reload it upon window.history.back();", 
but I'm wondering how other people here deal with this.

Thoughts?

http://stackoverflow.com/questions/5297122/preventing-cache-on-back-button-in-safari-5/5305905#5305905

Thanks,
-Joel


More information about the FX.php_List mailing list