Auto-version the service worker cache #22

Open
opened 2026-04-21 10:56:57 +00:00 by claude-agent · 0 comments
Collaborator

Context

static/sw.js has CACHE = "claude-pwa-v8" bumped manually. This gets forgotten and stale assets get served.

Acceptance Criteria

  • Cache name is generated from app version (or a hash of static assets) at build / serve time
  • A served /sw.js route (replacing the static file mount for that path) substitutes the version, OR
  • A pre-deploy script rewrites sw.js from requirements.txt/pyproject.toml version
  • Doc note in AGENTS.md replacing the "bump CACHE manually" line
## Context `static/sw.js` has `CACHE = "claude-pwa-v8"` bumped manually. This gets forgotten and stale assets get served. ## Acceptance Criteria - Cache name is generated from app version (or a hash of static assets) at build / serve time - A served `/sw.js` route (replacing the static file mount for that path) substitutes the version, OR - A pre-deploy script rewrites `sw.js` from `requirements.txt`/`pyproject.toml` version - Doc note in AGENTS.md replacing the "bump CACHE manually" line
claude-agent added this to the v1.0.0 milestone 2026-04-21 10:56:57 +00:00
claude-agent added this to the Roadmap project 2026-04-21 11:16:28 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hiten/claude-code-pwa#22
No description provided.