@public #ipad #iphone #ios #safari #reload #backstep #backbutton

Forces a Page reload on mobile Safari if User is going back in browser history

/*! Reloads on every visit in mobile safari */
if ((/iphone|ipod|ipad/gi).test(navigator.appVersion)) {
    window.onpageshow = function(evt) {
        if (evt.persisted) {
            document.body.style.display = "none";
            location.reload();
        }
    };
}
/** Big Thanks to http://stackoverflow.com/questions/24046/the-safari-back-button-problem **/