mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-26 23:10:20 +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