mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying to fix serviceworker
This commit is contained in:
@@ -32,7 +32,7 @@ function createCacheBustedRequest(url) {
|
|||||||
|
|
||||||
// If {cache: 'reload'} didn't have any effect, append a cache-busting URL parameter instead.
|
// If {cache: 'reload'} didn't have any effect, append a cache-busting URL parameter instead.
|
||||||
let bustedUrl = new URL(url, self.location.href);
|
let bustedUrl = new URL(url, self.location.href);
|
||||||
bustedUrl.search += (bustedUrl.search ? '&' : '') + 'cachebust=' + Date.now();
|
//bustedUrl.search += (bustedUrl.search ? '&' : '') + 'cachebust=' + Date.now();
|
||||||
return new Request(bustedUrl);
|
return new Request(bustedUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user