Add PWA support for MischLabs
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 11s

This commit is contained in:
Kroonk
2026-05-21 13:56:14 +02:00
parent 81ddb781ca
commit 1ecbcc38ae
11 changed files with 178 additions and 2 deletions

View File

@@ -9,6 +9,16 @@ server {
try_files $uri $uri/ /index.html;
}
location = /manifest.webmanifest {
default_type application/manifest+json;
add_header Cache-Control "public, max-age=3600" always;
}
location = /sw.js {
default_type application/javascript;
add_header Cache-Control "no-cache" always;
}
# Cache static assets
location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
expires 7d;