views/sw.js (view raw)
1self.addEventListener('install', function (event) { 2 console.log('service worker installed') 3}) 4 5self.addEventListener('fetch', () => console.log("fetch")); 6