✌️
This commit is contained in:
parent
61a19a598b
commit
79c06b5d3c
|
@ -35,17 +35,7 @@ self.addEventListener('activate', ev => {
|
||||||
|
|
||||||
//#region When: Fetching
|
//#region When: Fetching
|
||||||
self.addEventListener('fetch', ev => {
|
self.addEventListener('fetch', ev => {
|
||||||
/*
|
// Nothing to do
|
||||||
if (ev.request.url.startsWith(`${location.origin}/assets/locales/`)) {
|
|
||||||
ev.respondWith(
|
|
||||||
caches.match(ev.request)
|
|
||||||
.then(response => {
|
|
||||||
return response || fetch(ev.request);
|
|
||||||
})
|
|
||||||
.catch(() => new Response('SW cathces error while fetching. You may not be connected to the Internet, or the server may be down.', { status: 200, statusText: 'OK SW' }))
|
|
||||||
);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
});
|
});
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue