mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Add a hack to overcome safary back-forward cache
This commit is contained in:
@@ -3,3 +3,9 @@ import 'promise.prototype.finally';
|
||||
|
||||
// allow :active styles in mobile Safary
|
||||
document.addEventListener('touchstart', () => {}, true);
|
||||
|
||||
// disable mobile safary back-forward cache
|
||||
// http://stackoverflow.com/questions/8788802/prevent-safari-loading-from-cache-when-back-button-is-clicked
|
||||
window.onpageshow = (event) => {
|
||||
event.persisted && window.location.reload();
|
||||
};
|
||||
|
Reference in New Issue
Block a user