Usage with service worker
See original GitHub issueThanks for a great module!
I tried to use this with a site that uses ServiceWorker but it failed with the following reason
Error: DOMException: Failed to register a ServiceWorker: No URL is associated with the caller’s document.
It seems to be an issue with puppeteer. Is there any way we can workaround this? I thought it would be possible to just send page._client.send('Network.setBypassServiceWorker', { bypass: true });
or page._client.send('ServiceWorker.disable');
but I haven’t got it working.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
Using Service Workers - Web APIs | MDN
A service worker functions like a proxy server, allowing you to modify requests and responses replacing them with items from its own cache....
Read more >Service workers - web.dev
Service workers are a fundamental part of a PWA. They enable fast loading (regardless of the network), offline access, push notifications, and other ......
Read more >Service worker overview - Chrome Developers
Service workers are specialized JavaScript assets that act as proxies between web browsers and web servers. They aim to improve reliability by ...
Read more >What is the purpose of service worker? - Stack Overflow
A service worker is a specific type of JS Script, which runs in the background of the user's browser. It ...
Read more >What Are Service Workers and How to Use Them? - Medium
This is where service workers come into the picture! Put simply, a service worker is a JavaScript file used to cache certain assets...
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 Free
Top 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
You need to
yarn add minimalcss --dev
to be able to runminimalcss
viayarn
.Open issue in https://github.com/NekR/offline-plugin and ask how to handle this error on the client. I tried to search through their documentation, but failed to find something useful
Okay, thanks for your quick support!