From 3299b904ac1f4adbfeb5d3b200fde58ddbe28570 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Wed, 14 Aug 2024 21:08:15 +0200 Subject: [PATCH] feat: update logging message --- src/consts.ts | 2 +- src/sw.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/consts.ts b/src/consts.ts index 500b385..abb6ac7 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -4,4 +4,4 @@ export const SITE_AUTHOR_MASTODON = 'https://social.ayco.io/@ayo'; export const SITE_PROJECT_REPO = 'https://github.com/ayoayco/Cozy'; export const SITE_DESCRIPTION = 'The Web is Yours.'; -export const VERSION = 'Flying-Sparrow'; \ No newline at end of file +export const VERSION = 'Raging-Boar'; diff --git a/src/sw.js b/src/sw.js index d43448e..975448f 100644 --- a/src/sw.js +++ b/src/sw.js @@ -13,7 +13,7 @@ const addResourcesToCache = async (resources) => { const putInCache = async (request, response) => { const cache = await caches.open(cacheName); - console.log('[cozy-sw]: adding one response to cache...', request) + console.log('[cozy-sw]: adding one response to cache...', request.url) // if exists, replace const keys = await cache.keys(); @@ -108,8 +108,6 @@ self.addEventListener('install', (event) => { }); self.addEventListener('fetch', (event) => { - console.log('[cozy-sw]: fetch happened, trying network first', event.request) - // ... else, use cache first event.respondWith( networkFirst({ @@ -118,4 +116,4 @@ self.addEventListener('fetch', (event) => { fallbackUrl: './', }) ); -}); \ No newline at end of file +});