It turns out that there is a JQuery solution to the Safari back/forward browser 
cache issue:

$(window).bind("pageshow", function(event) {
    if (event.originalEvent.persisted) {
        window.location.reload() 
    }
});

http://stackoverflow.com/questions/8788802/prevent-safari-loading-from-cache-when-back-button-is-clicked

This only brings Safari to FF/Chrome behavior - i.e. page default reload on 
back button.

I really need to put some time in dealing with the local storage saved state 
restore issues rather than just saved molfile re-load. It would be nice to be 
able to restore state with this approach after  back button or return from a 
subsequent page.

Otis


--
Otis Rothenberger
o...@chemagic.org
http://chemagic.org

> On Feb 11, 2016, at 5:24 PM, Otis Rothenberger <osrot...@icloud.com> wrote:
> 
> Very Interesting!
> 
> On Mac, FF and Chrome reload the JSmol page on back button. I mean fresh 
> reload! You get  a default model reload. I was missing this because of my 
> local storage approach. The back button was reloading the page with FF and 
> Chrome, but the reload was loading my last model via LS. I only now picked up 
> on it because I implemented Angel ’s neat JSmol action load thingy. I started 
> using my LS approach because of a Safari problem, but it solved a problem for 
> FF and Chrome that I did not know I had - i.e. default reload on back button.
> 
> Otis
> 
> 
> --


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to