From 15475ff2bfbde7b46afd2aec8a8e95c4ceac5333 Mon Sep 17 00:00:00 2001 From: EduardZaydler <117674342+EduardZaydler@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:52:56 +0700 Subject: [PATCH] network first for html --- service-worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service-worker.js b/service-worker.js index 9e9d028d..5fa99f76 100644 --- a/service-worker.js +++ b/service-worker.js @@ -7,7 +7,7 @@ precacheAndRoute(self.__WB_MANIFEST.filter((entry) => !entry.url.includes("index registerRoute( ({ request }) => request.mode === "navigate" || - request.headers.get("accept")?.includes("text/html" && !request.url.includes("oauth")), + request.headers.get("accept")?.includes("text/html" && !url.href.includes("oauth")), new NetworkFirst({ cacheName: "html-pages",