remove sw bloat
This commit is contained in:
parent
2609727bf1
commit
2c1c7c7e6f
1 changed files with 0 additions and 46 deletions
|
|
@ -1,50 +1,4 @@
|
|||
/*
|
||||
const cacheName = "cache";
|
||||
const precachedResources = [
|
||||
'/',
|
||||
'/index.html',
|
||||
'/css/bulma.min.css',
|
||||
'/js/index.js',
|
||||
'/js/qr-creator.min.js',
|
||||
'/img/icon-192.png',
|
||||
'/img/icon-512.png'
|
||||
];
|
||||
|
||||
async function precache() {
|
||||
const cache = await caches.open(cacheName);
|
||||
return cache.addAll(precachedResources);
|
||||
}
|
||||
|
||||
self.addEventListener("install", (event) => {
|
||||
event.waitUntil(precache());
|
||||
});
|
||||
*/
|
||||
|
||||
/*
|
||||
self.addEventListener('install', event => {
|
||||
event.waitUntil(
|
||||
caches.open('bezahlbrudi-cache-v1').then(cache => {
|
||||
return cache.addAll([
|
||||
'/',
|
||||
'/index.html',
|
||||
'/css/bulma.min.css',
|
||||
'/js/index.js',
|
||||
'/js/qr-creator.min.js',
|
||||
'/img/icon-192.png',
|
||||
'/img/icon-512.png'
|
||||
// add any other core assets here
|
||||
]);
|
||||
})
|
||||
);
|
||||
});
|
||||
*/
|
||||
|
||||
self.addEventListener('fetch', event => {
|
||||
event.respondWith(fetch(event.request));
|
||||
/*
|
||||
caches.match(event.request).then(cached => {
|
||||
return cached || fetch(event.request);
|
||||
})
|
||||
*/
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue