Javascript – Reload the page if recovered from cache .Maui 7 years ago window.onpageshow = function(evt) { if (evt.persisted) { document.body.style.display = "none"; location.reload(); } };