sw.js
427 Bytes
self.addEventListener('install', (e) => {
e.waitUntil(
caches.open('footseen').then((cache) => cache.addAll([
// '/mTest/images/',
// '/mTest/index.html',
// '/mTest/index.js',
])),
);
});
self.addEventListener('fetch', (e) => {
// console.log(e.request.url);
e.respondWith(
caches.match(e.request).then((response) => response || fetch(e.request)),
);
});