Service-worker is not getting registered in my NX-Workspace

时间:2018-09-18 19:57:07

标签: angular service-worker ngrx angular-service-worker nrwl

Below is the screeshot of my index.html

service-worker in apps/web-app/index.html

Registering the service-worker giving 404 error

unknown #1255:bad http response code (404) was received when fetching the script

Below is the screenshot of the error

http://localhost:4200/libs/scripts/sw.js

I have also used the service worker with "https" but SW still not getting registered. I also tried to change the sw.js file-location but again getting an error. Can anybody tell me is this the issue with the file-location?

0 个答案:

没有答案
相关问题