pwa-offline-testing

Installation
SKILL.md

PWA & Offline Testing

Installability

Valid manifest.webmanifest (name, icons 192/512 + maskable, start_url, display, theme_color), HTTPS, registered service worker with fetch handler. Lighthouse PWA audit / DevTools → Application → Manifest; test install prompt on Android Chrome, iOS "Add to Home Screen" (no beforeinstallprompt), desktop.

Service worker lifecycle

Install → waiting → activate → controlling. Verify: first load registers; update flow (new SW waits; user prompted; skipWaiting/clients.claim intentional); old caches cleaned on activate; no stale HTML pinned forever; SW scope correct; SW script itself served Cache-Control: no-cache.

Caching strategies — test each route type

Content Strategy Test
App shell / static assets Cache-first (versioned) Offline reload renders shell
API reads Stale-while-revalidate / network-first Offline shows last data + "offline" banner
Images Cache-first with expiry/limit Cache size bounded
Auth/payment Network-only Never cached; not served offline
POST/mutations Background Sync queue Offline action replays once, in order, on reconnect
Installs
4
GitHub Stars
4
First Seen
Oct 24, 2026