question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Site does not register a service worker." While it does

See original GitHub issue

Edit: 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

  1. Go to https://bazaar.co/hello/ with google chrome
  2. Open chrome dev tools Audits tab, make sure Clear Storage is checked
  3. 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

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:closed
  • Created 5 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
paulirishcommented, Apr 25, 2019

From #6935: another possible repro site: https://www.ackeller.ch/

0reactions
patrickhulcecommented, Jan 28, 2020

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.

https://manifest-good.glitch.me/

Does not register a service worker, this page is an example of good manifest not a service worker. Lighthouse is correctly reporting here.

https://www.ackeller.ch/

Fixed.

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found