feat: update logging message
This commit is contained in:
parent
fe4518e132
commit
3299b904ac
2 changed files with 3 additions and 5 deletions
|
@ -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';
|
||||
export const VERSION = 'Raging-Boar';
|
||||
|
|
|
@ -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: './',
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue