When going offline, I get the following error by my service worker:
(unknown) #3016 An unknown error occurred when fetching the script
my service w
I had this issue while working in an Angular project. My problem was that I was using Angular CLI's built-in ng serve -prod command.
ng serve -prod
To make it work, I used ng build -prod and then host the resulting dist folder using http-server
ng build -prod