From 85cd1cbc65d93e2145690daa368e9dc7d9976092 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sat, 6 Jan 2024 20:32:19 +0900 Subject: [PATCH] Add 404 response for 'tf' resource in sw.js --- public/sw.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/sw.js b/public/sw.js index 8b664dec..89f9d534 100644 --- a/public/sw.js +++ b/public/sw.js @@ -61,6 +61,11 @@ self.addEventListener('fetch', (event) => { } })()) } + if(path[1] === 'tf'){{ + event.respondWith(new Response("Cannot find resource from cache", { + status: 404 + })) + }} })