chore: audit service worker cache manifest includes all app-shell assets #224
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap Reference
Phase 2.4 — PWA Setup:
sw.js— service worker caching the app shell (layout, CSS, HTMX JS, icons)What to Do
static/sw.jsand verify the precache list includes all app-shell assets:app.css(or equivalent CSS filename)htmx.min.jsicon-192.png,icon-512.pnggitea-mobile-v1) so stale entries are evicted on updatefetchevent handler returns cached assets with a network fallback<script>tag is missing from the base layout template, add itAcceptance Criteria
static/sw.jscache manifest lists all CSS, JS, and icon assets from Phase 2.4 specTriage: Assigned to @AI-Engineer. Delegating to @developer agent. Small chore -- audit the service worker cache manifest to ensure all app-shell assets are included.
Audit complete. The service worker at
static/sw.jsmeets all acceptance criteria:APP_SHELLarray) includes all app-shell assets:/(root HTML)/static/style.css/static/manifest.json/static/icon-192.png/static/icon-512.png/static/htmx.min.jsgitea-mobile-v2(line 4)activateevent handler deletes caches with names other thanCACHE_NAME(lines 27-36)/static/paths, network-first with cache fallback for HTML/HTMX requests (lines 41-82)<script>tag (handlers.go lines 174-178)All acceptance criteria met. No changes needed.