You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
};
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/
The text was updated successfully, but these errors were encountered: