Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Service Worker not prompting to be registered - net::ERR_FILE_EXISTS

I browsed through the other threads - there was no concrete answer.

I implemented a service worker for notifcations

http://docs.pushwoosh.com/docs/chrome-web-push

I checked everything - all scripts are in root, the keys are well implemented. However, I do not get prompted to allow notifs.

Console output reads:

GET https://mydomain/service-worker.js net::ERR_FILE_EXISTS

Note: I do have the correct URL (just changed it here).

What causes the service worker error? How do I fix this?

like image 274
Cody Raspien Avatar asked Jan 11 '16 10:01

Cody Raspien


1 Answers

It isn't anything to worry about. See the internal bug report: https://code.google.com/p/chromium/issues/detail?id=541797 the TL'DR is that when Chrome tries to fetch a new SW if there is no change and thus nothing to install it throws this error message to indicate that state. There is nothing that you need to do.

like image 69
Kinlan Avatar answered Nov 15 '22 07:11

Kinlan