- Check for a new service worker on every return to the foreground and
every 30 minutes; apply it in the background or just after launch,
never with unsynced edits or an open sheet. The Update prompt remains.
- Register the worker at extension-less /sw (no-cache), so proxies that
cache *.js regardless of headers cannot hide updates
- Return 404 for missing files instead of the HTML shell
- Tests for the static routes; smoke test covers /sw; document the Nginx
Proxy Manager "Cache Assets" pitfall
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>