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 is Service Worker Console? & Where is it in Chrome Browser?

I am working on push notifications and came upon an unfamiliar term: service worker console. I have read and used …

javascript web-services google-chrome console.log service-worker
How to refresh the page after a ServiceWorker update?

I've consulted a lot of resources on Service Workers: Updating your ServiceWorker ServiceWorker: Revolution of the Web Platform Jake Archibald's …

javascript service-worker progressive-web-apps
How can we use FCM Service Worker with a existing Service Worker?

We are creating a PWA web app and currently, we are using sw-precache library for generating service worker file, which …

angular firebase-cloud-messaging service-worker angular-service-worker
How to alter the headers of a Request?

Is it possible to alter the headers of the Request object that is received by the fetch event? Two attempts: …

javascript service-worker
Prevent Service Worker from automatically stopping

Service Worker seems to automatically stop at some point. This behaviour unintentionally closes the WebSocket connection established on activate. When …

javascript service-worker
Service worker throwing an net::ERR_FILE_EXISTS error?

service-worker.js:1 GET http://localhost:8080/service-worker.js net::ERR_FILE_EXISTS This is the error I get every time I …

javascript google-chrome service-worker
Angular Service Worker, caching api calls for offline app

I'm trying to make the service worker in angular work with API requests. I'd like the app to work offline …

javascript angular service-worker angular5 angular-service-worker
Service Worker vs Shared Worker

What is the difference between Service Worker and Shared Worker? When should I use Service Worker instead of Shared Worker …

javascript html web-worker service-worker
pwa - Service worker does not successfully serve the manifest's start_url

I am trying to add PWA functionality to an existing website that is hosted on Azure and uses Cloudflare CDN. …

service-worker cache-control progressive-web-apps lighthouse
Service Worker termination by a timeout timer was canceled because DevTools is attached

OS: Windows 10 Pro webpack: 1.14.0 sw-precache-webpack-plugin: 0.9.1 sw-precache: 5.0.0 So, I launch my site and don't actively do anything for a few moments, …

javascript reactjs service-worker sw-precache