On production we faced a problem with service worker. We don`t use PWA feature but still have error. Is there way to avoid this?
ERROR: Service worker registration failed with: TypeError: Failed to register a ServiceWorker for scope ('https://********') with script ('https://*****/ngsw-worker.js'): A bad HTTP response code (404) was received when fetching the script.
0
votes
1 Answers
0
votes
I think this is really an Angular question, rather than a Spartacus-specific question. See the Angular documentation at https://angular.io/guide/service-worker-devops (particularly the section Service Worker Safety > Fail-safe)