We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ef3b5 commit 4b86575Copy full SHA for 4b86575
1 file changed
src/compiler/build/init-index-html.ts
@@ -186,9 +186,9 @@ const APP_LOADING_HTML = `
186
document.querySelector('.toast').classList.add('active');
187
}, 100);
188
189
- setInterval(function() {
+ var tmrId = setInterval(function() {
190
try {
191
- var url = window.location.pathname + '?' + Math.random();
+ var url = window.location.pathname + '?r=' + Date.now();
192
var xhr = new XMLHttpRequest();
193
xhr.addEventListener('load', function() {
194
@@ -197,7 +197,10 @@ const APP_LOADING_HTML = `
197
window.location.reload(true);
198
}
199
} else if (window.location.pathname !== '/') {
200
- url = '/' + Math.random();
+ url = '/?r=' + Date.now();
201
+
202
+ } else if (this.status > 299) {
203
+ clearInterval(tmrId);
204
205
206
} catch (e) {
0 commit comments