Skip to content
Discussion options

You must be logged in to vote

Found a hack that helps curb unwanted behavior. Not perfect, but at least something.

window.addEventListener('pageshow', function (event) {
    if (event.persisted || performance.getEntriesByType("navigation")[0].type === 'back_forward') {
        document.documentElement.innerHTML = '';
        location.reload();
    }
}, false);

Thanks @SimoTod

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@ekwoka
Comment options

@Jipok
Comment options

@Jipok
Comment options

@ekwoka
Comment options

@Jipok
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Jipok
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants