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.

Angular Service Worker - Failed to load resource: the server responded with a status of 504 (Gateway Timeout)

I am using the Angular-CLI 1.6.6 and @angular/service-worker 5.2.5 in our Angular 5.2.5 app. Everything works fine on the local lite-server, as …

angular angular-cli angular5 service-worker angular-service-worker
Vue PWA not getting new content after refresh

I'm new to Vue and created a project with the PWA Service-worker plugin. After deploying a new version of my …

javascript vue.js vuejs2 service-worker progressive-web-apps
Passing state info into a service worker before `install`

Background I'm new to service workers but working on a library that is intended to become "offline-first" (really, almost "offline-only") (…

javascript service-worker
PWA: No matching service worker detected. You may need to reload the page

I get this warning: No matching service worker detected. You may need to reload the page, or check that the …

service-worker progressive-web-apps workbox workbox-webpack-plugin
How to setup custom response header in AWS S3

I want to take my application to offline mode, and I want to register a service worker. My files are …

amazon-s3 amazon-cloudfront service-worker
Is it possible to cache an entire HTML5 video using the Service Worker API for offline use?

I have an offline app that caches all static resources. Currently, only the first 15 seconds of video assets are cached. …

javascript html browser-cache service-worker
Angular 7 Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script

I am getting the following error ERROR Error: Uncaught (in promise): TypeError: Failed to register a ServiceWorker: A bad HTTP …

angular service-worker angular7 angular-service-worker
Service worker communicate to clients

I have been trying to send messages to clients from service worker but if I use self.clients.matchAll() .then((…

client service-worker
What is the purpose of a manifest.json file in an Angular project

First of all I didn't know anything about the potential existence of such file in the context of an Angular 5+ …

angular angular-cli angular5 service-worker angular-service-worker
How to prevent the same service worker from registering over multiple pages?

I have a service worker script that is registering repeatedly over multiple site levels. In other words the same service …

javascript service-worker