Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupts iOS page cache (aka back-forward button cache) #25

Open
tengelin opened this issue Feb 5, 2013 · 0 comments
Open

Corrupts iOS page cache (aka back-forward button cache) #25

tengelin opened this issue Feb 5, 2013 · 0 comments

Comments

@tengelin
Copy link

tengelin commented Feb 5, 2013

Turns out that adding a listener to devicemotion event corrupts page cache, aka back-forward button cache. Easily tested by adding below script to page and browsing between pages using back button.
window.onpageshow = function(e) {
console.log(e.persisted);
};

More about page cache: https://www.webkit.org/blog/427/webkit-page-cache-i-the-basics/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant