service-worker Questions
2
Solved
I would like to read a cookie within my service worker to use it when setting up my caches, but can't find any way of doing it.
Is there any way of doing that, or will I need to duplicate cookie d...
Censer asked 17/2, 2016 at 3:50
3
Solved
Situation:
On mywebsite.com/game, I registered a service-worker with
navigator.serviceWorker.register('/service-worker.js', {scope: "/"});
On my server, '/service-worker.js' has a maxAge of 1d.
...
Ingathering asked 13/9, 2019 at 3:1
9
I am using a react pdf viewer and I would like to set up worker locally. I have tried doing that like this:
import pdfjsWorker from "pdfjs-dist/build/pdf.worker.entry";
<Worker worker...
Sheets asked 29/1, 2021 at 14:5
1
Solved
I am trying to see the request the browser does to get the service worker implementation, but it doesn't show at all. I know for sure that my app has a working service worker, but I would like to b...
Ligon asked 9/6, 2022 at 19:14
4
Solved
Edit: This looks like a duplicate of this Unresolved Question.
Do I mark this as answered, or delete?
I am using InjectManifest from workbox-webpack-plugin inside a Vue CLI 3 app. The custom servi...
Stoll asked 24/1, 2019 at 22:38
2
Solved
I have a website and I installed a service worker at the root and even set the scope to '/' as mentioned here: Service worker is caching files but fetch event is never fired
But, the fetch event i...
Kore asked 27/7, 2018 at 17:22
2
Solved
When I built my angular project with angular/pwa and tested it on local server using http-server, it was working as expected. Even offline caching is working fine in local.
But when I've deployed ...
Baelbeer asked 10/6, 2019 at 5:34
2
Solved
I'm using some service worker code from the Progressive Web app tutorial by Google but I am getting an error:
Uncaught (in promise) TypeError:
Failed to execute 'clone' on 'Response':
Response ...
Adamsen asked 10/2, 2019 at 18:31
3
Solved
My extension creates zip archive with images inside. And I used chrome.downloads.download to download my archive to device.
const url = URL.createObjectURL(archiveBlob);
chrome.downloads.download(...
Damali asked 2/6, 2022 at 9:40
5
Solved
I registered a service worker successfully, but then the code
navigator.serviceWorker.ready.then(function(serviceWorkerRegistration) {
// Do we already have a push message subscription?
....
h...
Guidotti asked 26/4, 2015 at 5:18
2
With manifest v2, I used URL.createObjectURL in order to return file from background to content. How do this with manifest v3 and Service Worker? I know about XMLHttpRequest to fetch. But what anal...
Mikkimiko asked 9/2, 2021 at 18:44
6
Solved
I've been reading through the html5rocks Introduction to service worker article and have created a basic service worker that caches the page, JS and CSS which works as expected:
var CACHE_NAME = '...
Cecilia asked 21/10, 2015 at 14:43
3
I'm trying to integrate firebase messaging into my NextJS web app but getting errors that potentially look like they're coming from the serverside. To get registrations working in _app.tsx I do the...
Recycle asked 15/5, 2022 at 14:47
17
Solved
after adding @angular/pwa to my app
ng add @angular/pwa --project appName
I get error
core.js:34469 Uncaught TypeError: Cannot read property 'id' of undefined
at registerNgModuleType
If I ...
Forefinger asked 20/11, 2019 at 11:38
5
Solved
I see push notification for Facebook web in chrome only when I open chrome. I know that this notification are sent through service worker. I am wondering whether this background sync goes on even t...
Mail asked 29/8, 2016 at 7:50
3
Solved
I work with AngularJS and use service worker to receive push notifications.
But navigator.serviceWorker.controller is null until page refresh, and I don't know how to solve this problem.
Some code ...
Kucera asked 3/7, 2016 at 8:49
1
I thought it would be rather simple but I am struggle to successfully send response then modify my cloned response that is being stored in cache inside my service worker.
Ultimately I want to app...
Slaton asked 1/10, 2019 at 23:33
2
Solved
I have been analyzing the cache storage use of complex application, when I realized that the stored image or script with certain content-length N actually takes 5N-10N space in the cache storage.
...
Dunk asked 15/3, 2018 at 9:0
3
Solved
I'm trying to migrate my browser extension (that I expect to work on Chrome and Firefox) from manifest v2 to v3.
However, I am getting conflicting information about the background section. I did lo...
Nobe asked 7/1, 2023 at 21:27
5
Solved
Our site uses PWA so that the visitor can choose to Add to Home Screen (A2HS). However, from Google Analytics data, the Dismiss rate is too high compared to Acceptance rate.
We plan to make the UX...
Fortunna asked 18/5, 2018 at 3:38
3
Solved
I have an element that I want to populate as a request's HTML streams in, instead of waiting for the complete response. This turned out to be incredibly difficult.
Things I've tried:
1. milestone...
Philia asked 16/7, 2016 at 16:48
2
Solved
A hard reload or hard refresh (e.g., shift-reload in Chrome) appears to bypass the service worker.
For example, loading a service-worker controlled page such as https://airhorner.com/ or https://w...
Fasces asked 25/2, 2016 at 13:9
5
Solved
I have configured Javascript API for firebase push notifications on my website. Everything is working fine but I'm seeing many 'Background messages'. I've just put the firebase-messaging-sw.js file...
Latecomer asked 25/2, 2017 at 11:47
3
Solved
Im trying to understand the difference between skipWaiting and clientsClaim. In my understanding: calling skipWaiting will cause the new service worker to skip the waiting phase, and become active ...
Sommerville asked 20/9, 2019 at 11:17
2
Solved
How should I structure a project that includes main thread (DOM) script, and workers? Eg:
main.ts
// This file must have DOM types, but not worker types.
const worker = new Worker('worker.js');
...
Anthea asked 29/5, 2019 at 8:54
1 Next >
© 2022 - 2025 — McMap. All rights reserved.