re: Service Workers... aren't working VIEW POST


assets/cricket.png doesn't seem to valid since I'm getting a 404 on hitting

It's good to catch these kinds of errors too:

     .then(() => console.log('Assets added to cache'))
     .catch(err => console.log('Error while fetching assets', err));

Also, addAll won't cache any of the specified assets if even one request fails.


Ah, thanks. That's fixed the error, but I still can't access the site offline. On mobile, it just shows the "no internet" page, and on computer I either get no errors or I get An unknown error occurred when fetching the script.
Failed to load resource: net::ERR_INTERNET_DISCONNECTED

code of conduct - report abuse