forked from MapComplete/MapComplete
Tooling: exclude .local-domains from caching by the service worker
This commit is contained in:
parent
f2f041f9d0
commit
e0dcd1cc1e
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ self.addEventListener("fetch", async (e) => {
|
|||
origin.host === requestUrl.host &&
|
||||
origin.hostname !== "127.0.0.1" &&
|
||||
origin.hostname !== "localhost" &&
|
||||
!origin.hostname.endsWith(".local") &&
|
||||
!origin.host.endsWith(".gitpod.io")
|
||||
if (!shouldBeCached) {
|
||||
console.log("Not intercepting ", requestUrl.toString(), origin.host, requestUrl.host)
|
||||
|
|
Loading…
Reference in a new issue