Tooling: exclude .local-domains from caching by the service worker

This commit is contained in:
Pieter Vander Vennet 2024-01-15 01:42:23 +01:00
parent f2f041f9d0
commit e0dcd1cc1e

View file

@ -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)