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
|
// Do not mess up with remote things
|
||||||
const isSameOrigin = (new URL(event.request.url)).origin === self.location.origin
|
const isSameOrigin = (new URL(event.request.url)).origin === self.location.origin
|
||||||
if (shouldCache && event.request.method === 'GET' && isSameOrigin && isNotMedia(event.request)) {
|
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 () => {
|
event.respondWith((async () => {
|
||||||
const r = await caches.match(event.request)
|
const r = await caches.match(event.request)
|
||||||
const isEmojiReq = isEmoji(event.request)
|
const isEmojiReq = isEmoji(event.request)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue