Top "Service-worker" questions

A service worker is JavaScript code that, once registered with an associated origin and scope, will respond to browser-initiated events, even when the pages it controls are no longer open.

Activate updated service worker on refresh

When a service worker updates, it doesn't take control of the page right way; it goes into a "waiting" state, …

service-worker
Is it possible to make an in-app button that triggers the PWA "Add to Home Screen" install banner?

I understand that with a properly made Progressive Web App mobile browsers will display a banner prompting users to 'Install' …

javascript service-worker progressive-web-apps
Service worker is caching files but fetch event is never fired

I have just attempted to implement service workers to cache some JSON files and other assets on a static site (…

javascript google-chrome service-worker progressive-web-apps
How can I remove a buggy service worker, or implement a "kill switch"?

I'm playing with the service worker API in my computer so I can grasp how can I benefit from it …

javascript service-worker
Can service workers cache POST requests?

I tried to cache a POST request in a service worker on fetch event. I used cache.put(event.request, …

javascript post request service-worker pwa
Can't find serviceWorker in navigator anymore

since the new update of Google Chrome (version 69.0.3497.92 (official build) (64-bit)) I can't find the serviceWorker service in the Navigator …

javascript google-chrome service-worker
What is the storage limit for a service worker?

Most of the browsers provide localStorage with the storage limit of 5MB per domain. Are there such memory limits/constraints …

javascript service-worker progressive-web-apps
An unknown error occurred when fetching the script (Service Worker)

When going offline, I get the following error by my service worker: (unknown) #3016 An unknown error occurred when fetching the …

javascript manifest service-worker offline-caching progressive-web-apps
Google Chrome Push Notifications not working if the browser is closed?

It is written here that the push notifications will work even if the browser is closed, but I tested it …

javascript google-chrome push-notification service-worker progressive-web-apps
navigator.serviceWorker is never ready

I registered a service worker successfully, but then the code navigator.serviceWorker.ready.then(function(serviceWorkerRegistration) { // Do we already have …

service-worker