mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-27 23:40:28 +05:30
Add a hack to overcome safary back-forward cache
This commit is contained in:
parent
f376e12f3c
commit
8cd00a5c40
@ -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();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user