diff --git a/PWA.md b/PWA.md new file mode 100644 index 0000000..e606805 --- /dev/null +++ b/PWA.md @@ -0,0 +1,10 @@ +# PWA updates + +When you change files that the service worker caches (`index.html`, `style.css`, `js/*`, icons, manifest, etc.): + +1. Open `sw.js` +2. Bump `CACHE_VERSION` (e.g. `bumpmesh-v1` → `bumpmesh-v2`) +3. If you added or renamed cached files, update the `PRECACHE` list in `sw.js` +4. Commit, push, and deploy + +Users pick up the update on their next visit. The new service worker installs, replaces the old cache, and serves fresh files. \ No newline at end of file diff --git a/README.md b/README.md index d27d50b..404325f 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,8 @@ Open http://localhost:8000 in your browser and you're ready to go. > **Tip:** Any static server will work — the app has no server-side dependencies. +> **PWA changes:** Read [PWA.md](PWA.md) before you commit and push. + ## Dependencies Loaded via CDN ([jsDelivr](https://www.jsdelivr.com/)) — no build step or npm install needed: diff --git a/icons/icon-192.png b/icons/icon-192.png new file mode 100644 index 0000000..5a5947a Binary files /dev/null and b/icons/icon-192.png differ diff --git a/icons/icon-512.png b/icons/icon-512.png new file mode 100644 index 0000000..73421aa Binary files /dev/null and b/icons/icon-512.png differ diff --git a/index.html b/index.html index 6b1b661..8a72b93 100644 --- a/index.html +++ b/index.html @@ -24,15 +24,36 @@ + + + + + + + @@ -732,5 +753,12 @@