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:
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user