Weise dem Web-App-Manifest den richtigen MIME-Typ zu und registriere einen Service Worker, damit Browser und Handy die Installation anbieten.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
339238ce21
commit
db4063296b
5 files changed
+83
No files matched your search
@@ -36,6 +36,16 @@ server {
|
||||
proxy_read_timeout 30s;
|
||||
}
|
||||
|
||||
# .webmanifest ist in den Standard-MIME-Typen dieses Nginx nicht enthalten.
|
||||
# octet-stream plus nosniff lässt den Browser das Manifest verwerfen,
|
||||
# dann fehlt das Installationsangebot.
|
||||
location = /manifest.webmanifest {
|
||||
types {
|
||||
application/manifest+json webmanifest;
|
||||
}
|
||||
default_type application/manifest+json;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user