reduce spam
This commit is contained in:
parent
a1f43234cd
commit
917fc1def0
1 changed files with 2 additions and 1 deletions
|
|
@ -223,7 +223,8 @@ self.addEventListener('fetch', (event) => {
|
|||
// Do not mess up with remote things
|
||||
const isSameOrigin = (new URL(event.request.url)).origin === self.location.origin
|
||||
if (shouldCache && event.request.method === 'GET' && isSameOrigin && isNotMedia(event.request)) {
|
||||
console.debug('[Service worker] fetch:', event.request.url)
|
||||
// this is a bit spammy
|
||||
// console.debug('[Service worker] fetch:', event.request.url)
|
||||
event.respondWith((async () => {
|
||||
const r = await caches.match(event.request)
|
||||
const isEmojiReq = isEmoji(event.request)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue