nginx: Manifest mit korrektem MIME-Type application/manifest+json

nginx-alpine mappt .webmanifest sonst auf octet-stream -> Chrome mag den
PWA-Manifest-Type nicht sauber.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Claude Code
2026-07-15 11:10:22 +00:00
parent 4b061f5af8
commit efbc185ba0

View File

@@ -10,8 +10,11 @@ server {
add_header Referrer-Policy "no-referrer" always; add_header Referrer-Policy "no-referrer" always;
# Service Worker & Manifest nie cachen -> App-Updates greifen sofort. # Service Worker & Manifest nie cachen -> App-Updates greifen sofort.
location = /sw.js { add_header Cache-Control "no-cache"; } location = /sw.js { add_header Cache-Control "no-cache"; }
location = /manifest.webmanifest { add_header Cache-Control "no-cache"; } location = /manifest.webmanifest {
default_type application/manifest+json; # nginx-alpine kennt .webmanifest nicht
add_header Cache-Control "no-cache";
}
# Entwickler-/Test-Artefakte (_-Präfix) niemals ausliefern. # Entwickler-/Test-Artefakte (_-Präfix) niemals ausliefern.
location ~ /_ { deny all; } location ~ /_ { deny all; }