|
|
|
@ -68,8 +68,8 @@ self.addEventListener('fetch', event => { |
|
|
|
|
.open(`offline${timestamp}`) |
|
|
|
|
.then(async cache => { |
|
|
|
|
try { |
|
|
|
|
const response = await fetch(event.request); |
|
|
|
|
cache.put(event.request, response.clone()); |
|
|
|
|
const response = await fetch(event.request, {credentials: 'same-origin'}); |
|
|
|
|
// cache.put(event.request, response.clone());
|
|
|
|
|
return response; |
|
|
|
|
} catch(err) { |
|
|
|
|
const response = await cache.match(event.request); |
|
|
|
|