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:
@@ -11,7 +11,10 @@ server {
|
||||
|
||||
# Service Worker & Manifest nie cachen -> App-Updates greifen sofort.
|
||||
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.
|
||||
location ~ /_ { deny all; }
|
||||
|
||||
Reference in New Issue
Block a user