GoogleChromeLabs / sw-toolbox

[Deprecated] A collection of service worker tools for offlining runtime requests
https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw
Apache License 2.0
3.62k stars 332 forks source link

service worker error #284

Open bbmattieu9 opened 6 years ago

bbmattieu9 commented 6 years ago

i am new to service worker. I have been following Jake's lesson on Udacity but I am lost. I was trying to cache the avatars and i noticed whenever i npm run serve i get the error below and my locahost:8888 does not show images and my console pops alot of error message saying fetch request failed. Please what did i do wrong? my code below screen shot 2018-05-14 at 8 46 29 am

screen shot 2018-05-14 at 8 54 57 am

screen shot 2018-05-14 at 8 49 36 am

screen shot 2018-05-14 at 8 51 32 am

screen shot 2018-05-14 at 8 53 18 am

jakearchibald commented 6 years ago

This isn't related to sw-toolbox.

However, cache.keys()then looks like a syntax error to me. Should be cache.keys().then