Add 404 response for 'tf' resource in sw.js
This commit is contained in:
@@ -61,6 +61,11 @@ self.addEventListener('fetch', (event) => {
|
||||
}
|
||||
})())
|
||||
}
|
||||
if(path[1] === 'tf'){{
|
||||
event.respondWith(new Response("Cannot find resource from cache", {
|
||||
status: 404
|
||||
}))
|
||||
}}
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user