diff --git a/src/polyfills.js b/src/polyfills.js index 1e0d2a6..a0d34fc 100644 --- a/src/polyfills.js +++ b/src/polyfills.js @@ -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(); +};