Bbabo NET

Science & Technology News

Chrome v 95 has some issues with Service Workers lighthouse testing

I am trying to audit my application on Chrome Lighthouse, but I can't get Service Worker working.
When I try to run Lighthouse it gets stuck and console log the fallowing error:
Service worker not registered DOMException: Failed to register a ServiceWorker for scope ('https://www..../') with script ('https://www..../sw.js'): Operation has been aborted
SOLUTION:
If you uncheck the clear cache option in lighthouse options it starts working.

Looks like Chrome v 95 has some issues with Service Workers lighthouse testing See github.com/GoogleChrome/lighthouse/issues/13236 Chrome v 95 has some issues with Service Workers lighthouse testing