Progressive web app Uncaught (in promise) TypeError: Failed to fetch
问题 I started learning PWA (Progressive Web App) and I have problem, console "throws" error Uncaught (in promise) TypeError: Failed to fetch. Anyone know what could be the cause? let CACHE = 'cache'; self.addEventListener('install', function(evt) { console.log('The service worker is being installed.'); evt.waitUntil(precache()); }); self.addEventListener('fetch', function(evt) { console.log('The service worker is serving the asset.'); evt.respondWith(fromCache(evt.request)); }); function precache