service-worker.js 341 B

123456789101112131415
  1. self.addEventListener('install', e => {
  2. // console.log('[Service Worker] Installed');
  3. });
  4. self.addEventListener('activate', e => {
  5. // console.log('[Service Worker] Activated');
  6. });
  7. self.addEventListener('fetch', e => {
  8. // e.respondWith(
  9. // caches.match(e.request).then(res => {
  10. // return res || fetch(e.request);
  11. // })
  12. // );
  13. });