From a1e75d06887d189facf3e4d7b342b3bde78fc0e0 Mon Sep 17 00:00:00 2001 From: supermonkeycat <76791164+supermonkeycat@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:57:37 -0400 Subject: [PATCH] Delete service-worker.js --- service-worker.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 service-worker.js diff --git a/service-worker.js b/service-worker.js deleted file mode 100644 index 0bd576e..0000000 --- a/service-worker.js +++ /dev/null @@ -1,16 +0,0 @@ -self.addEventListener('fetch', (event) => { - const url = new URL(event.request.url); - if (url.origin === location.origin) { - event.respondWith( - fetch(event.request).then(response => { - const clonedResponse = response.clone(); - caches.open('my-cache').then(cache => { - cache.put(event.request, clonedResponse); - }); - return response; - }).catch(() => { - return caches.match(event.request); - }) - ); - } -});