From 3b0ac4bda33e209b80da2345265fd57a33757b48 Mon Sep 17 00:00:00 2001 From: prokawsar Date: Mon, 15 Jul 2024 12:30:24 +0600 Subject: [PATCH] sw fix --- src/service-worker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/service-worker.js b/src/service-worker.js index 28bb61f..ef3e0c3 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -34,6 +34,9 @@ self.addEventListener('fetch', (event) => { // ignore POST requests etc if (event.request.method !== 'GET') return + // ignore chrome-extension requests + if (event.request.url.startsWith('chrome-extension://')) return + async function respond() { const url = new URL(event.request.url) const cache = await caches.open(CACHE)