This commit is contained in:
2024-06-26 18:27:24 +03:00
parent 16b59383ee
commit b9e441075f
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -84,13 +84,14 @@ kit.config = kit.config || {};
document.querySelector('meta[property="kit:file-load"][content="'+src+'"]'); document.querySelector('meta[property="kit:file-load"][content="'+src+'"]');
} }
function getUrlWithTimestamp(url){ function getUrlWithTimestamp(url){
var t = ((new Date()).getTime() / 3600 >> 0) * 3600;
try { try {
var uri = new URL(url); var uri = new URL(url);
uri.searchParams.append('__pm', (new Date()).getTime()); uri.searchParams.append('__pm', String(t));
url = uri.toString(); url = uri.toString();
} catch (e) { } catch (e) {
url = String(url).split('?')[0]; url = String(url).split('?')[0];
url = '' + url + '?__pm' + (new Date()).getTime(); url = '' + url + '?__pm' + t;
} }
return url; return url;
} }
+1 -1
View File
File diff suppressed because one or more lines are too long