"Site does not register a service worker." While it does
See original GitHub issueEdit: I’ve removed SW registration from the page https://bazaar.co/hello/
So you on’t be able to reproduce the bug anymore.
Other links are available further down in this thread.
Provide the steps to reproduce
- Go to https://bazaar.co/hello/ with google chrome
- Open chrome dev tools Audits tab, make sure
Clear Storage
is checked - Run an audit
What is the current behavior?
It says
User will not be prompted to Install the Web App
Failures: Site does not register a service worker.
Meanwhile the Applications
> Service workers
tabs of the devtools says that my service worker is activated and running
I can also observe the cache effects of my service worker.
If you uncheck Clear Storage
it seems to be working as expected.
What is the expected behavior?
The audit should not say Failures: Site does not register a service worker.
Environment Information
- Chrome Version 69.0.3497.100 (64 bits)
- vue-cli-pwa
- service worker loaded with https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/cli-plugin-pwa/generator/template/src/registerServiceWorker.js
Related issues https://github.com/GoogleChrome/lighthouse/issues/1815 https://github.com/GoogleChrome/lighthouse/issues/5527
(and thanks for you awesome work!)
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Does not register a service worker that controls page and ...
Registering a service worker involves only a few lines of code, but the only reason you'd use a service worker is to make...
Read more >Service worker is not registering - Stack Overflow
Chrome seems to be trying to load/register https://boopathi.in/sw-demo-iss/sw.bundle.js as the service worker, but that 404s.
Read more >Service worker registration - web.dev
Generally, deferring service worker registration until after the initial page has loaded will provide the best experience for users, especially ...
Read more >ServiceWorkerContainer.register() - Web APIs | MDN
The register() method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scriptURL.
Read more >Registering a service worker - Packt Subscription
Registering your service worker is the first step to getting a service worker up and running. By registering a service worker, we tell...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
From #6935: another possible repro site: https://www.ackeller.ch/
I’m not able to reproduce any of the listed URLs. If you’re experiencing this on your page, please file a new issue with repro steps and a URL.
Does not register a service worker, this page is an example of good manifest not a service worker. Lighthouse is correctly reporting here.
Fixed.