Sometimes, your page will stay in the previous state in the Safari browser. A simple fix is to reload the page when your visitors enter the page. The following event can be used: window.onpageshow = function(event) { // reload page if coming from back/forward cache (Safari) if (event.persisted) { // jQuery('body').html(''); // When needed, you can clear the current html from the page to prevent a swap feeling for the visitor window.location.reload(true); }}; Based on the `event.persisted` element, it will simply reload the current page.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners