PakStream

PakStream — PWA Enablement

This update makes PakStream installable and Lighthouse‑clean for the PWA audits, with minimal and safe caching.

Added / Updated

Bumping the cache

Edit sw.js and change:

const CACHE_NAME = "pakstream-shell-v1"; // e.g., pakstream-shell-v2

Commit & deploy; clients will update on next load.

How to test

  1. Register/Offline
    • Open DevTools → Application → Service Workers.
    • Ensure the worker is activated. Check Offline in the Network panel.
    • Refresh → you should see /offline.html for navigations.
  2. Installability
    • In DevTools → ApplicationManifest, confirm: no errors, icons show, screenshots listed.
    • Visit the site in a non‑Incognito window. Look for the Install icon in the address bar (Chrome) or use Chrome menu → Install PakStream.
  3. Playback
    • With network on, verify radio/YouTube still play normally.
    • With network off, verify they do not start (by design).

Notes