Add 404 response for 'tf' resource in sw.js

This commit is contained in:
kwaroran
2024-01-06 20:32:19 +09:00
parent da77f12f7e
commit 85cd1cbc65

View File

@@ -61,6 +61,11 @@ self.addEventListener('fetch', (event) => {
}
})())
}
if(path[1] === 'tf'){{
event.respondWith(new Response("Cannot find resource from cache", {
status: 404
}))
}}
})