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.

What does registerServiceWorker do in React JS?

I'm a newbie in React and I was wondering what is the purpose of registerServiceWorker() in the following code? import …

javascript reactjs service-worker react-dom
When and how does a PWA update itself?

As far as I know, once you click "add to homescreen" on a PWA's website, the browser generates an .apk …

android apk manifest service-worker progressive-web-apps
Service-worker force update of new assets

I've been reading through the html5rocks Introduction to service worker article and have created a basic service worker that …

service-worker
How to force service worker to update?

I'm using sw-precache to generate my service work with Polymer CLI build process, so it's intended to update the hash …

html service-worker offline-caching progressive-web-apps sw-precache
PWA add to home screen not showing popup

I implemented PWA for my static site. service worker register successfully and my page is also working in offline as …

service-worker progressive-web-apps
Progressive web app Uncaught (in promise) TypeError: Failed to fetch

I started learning PWA (Progressive Web App) and I have problem, console "throws" error Uncaught (in promise) TypeError: Failed to …

javascript service-worker progressive-web-apps
What limitations apply to opaque responses?

Opaque responses are defined as part of the Fetch API, and represent the result of a request made to a …

javascript cors service-worker fetch-api
Service workers and iOS / Safari

On Chromium's page about service workers there's noted that Service Workers are not supported by Chrome on iOS. I assume …

ios service-worker progressive-web-apps
Service worker JavaScript update frequency (every 24 hours?)

As per this doc on MDN: After that it is downloaded every 24 hours or so. It may be downloaded more …

service-worker
Firebase: change the location of the service worker

I am trying to use Firebase messaging (web). Firebase by default searches for the file "firebase-messaging-sw.js" which holds the …

javascript firebase firebase-cloud-messaging service-worker