Apply app updates automatically and survive proxy caching
All checks were successful
Verify and publish Calio container / build-and-push (push) Successful in 29s
All checks were successful
Verify and publish Calio container / build-and-push (push) Successful in 29s
- 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>
This commit is contained in:
parent
bb0bc430aa
commit
8f6981c8a2
7 changed files with 190 additions and 40 deletions
|
|
@ -129,6 +129,7 @@ try {
|
|||
for (const path of [
|
||||
"/",
|
||||
"/sw.js",
|
||||
"/sw",
|
||||
"/manifest.webmanifest",
|
||||
"/icons/apple-touch-icon.png",
|
||||
"/icons/apple-touch-icon-v2.png",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue