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.

How can I cache external URLs using service worker?

I've been playing with the Google Web Starter Kit (https://github.com/google/web-starter-kit) and have got a little progressive …

javascript caching service-worker
Icons and manifest.json

What are the recommendation on how to deal with icons in manifest.json? I found this webpack plugin that generates …

javascript html browser service-worker manifest.json
Is "Add to home screen" feature of PWA supports in iOS?

I am building an app using PWA. I am using Angular to meet our requirement. Basically, it is a media …

angular service-worker progressive-web-apps angular-service-worker
How to update service worker cache in PWA?

I use service worker with sw-toolbox library. My PWA caches everything except API queries (images, css, js, html). But what …

javascript service-worker ionic3 sw-toolbox
Service Worker skipWaiting unable to activate currently waiting SW

Description: We are using sw precache for caching the scripts before hand, hence to update the scripts we are giving …

reactjs service-worker progressive-web-apps sw-precache sw-toolbox
Manifest start_url is not cached by a Service Worker

I'm using Lighthouse to audit my webapp. I'm working through the failures, but I'm stuck on this one: Failures: Manifest …

service-worker progressive-web-apps manifest.json lighthouse
Accessing indexedDB in ServiceWorker. Race condition

There aren't many examples demonstrating indexedDB in a ServiceWorker yet, but the ones I saw were all structured like this: …

html indexeddb service-worker
clients.openWindow() "Not allowed to open a window." on a serviceWorker Google Chrome

I'm testing under Chrome Version 42.0.2311.152m and I want to implement to open a window on a notificationclick like in …

google-chrome service-worker
How to use service workers in Cordova Android app?

I want to use a service worker in my Cordova Android add as a convenient way to sync some images …

android cordova service-worker
Next.js PWA (Service Worker + Manifest.json)

I am using Next.js to develop a Server Side Rendering website and I want to make it a Progressive …

manifest service-worker progressive-web-apps next.js lighthouse