Update sw.js from pwa:create:sw, add PWA static paths to Caddy prod

- sw.js regenerated by Workbox with full cache strategies
- Add screen.png, site.webmanifest, workbox/*, idb/*, pwa/* to Caddy static paths

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-20 19:52:20 +01:00
parent acb7e15b43
commit 7c0149b785
2 changed files with 682 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ ticket.e-cosplay.fr {
dns cloudflare {{ cloudflare_api_token }}
}
@static path /logo.png /favicon.ico /favicon.png /marker.png /manifest.json /sw.js /build/* /uploads/*
@static path /logo.png /favicon.ico /favicon.png /marker.png /screen.png /manifest.json /site.webmanifest /sw.js /workbox/* /idb/* /build/* /uploads/* /pwa/*
handle @static {
root * /var/www/e-ticket/public
file_server