Make the app installable on mobile (PWA manifest, icons, offline service worker)

This commit is contained in:
X4Lo committed 2026-11-07 23:14:46 +00:00
1 parent b6a74f2eee
commit 95dbfc0678
9 files changed
+89 -2

No files matched your search

+15 -1
View File
@@ -6,7 +6,21 @@ server {
charset utf-8;
gzip on;
gzip_types text/html text/css application/javascript;
gzip_types text/html text/css application/javascript application/manifest+json;
location = /manifest.webmanifest {
default_type application/manifest+json;
add_header Cache-Control "no-cache";
}
location = /sw.js {
add_header Cache-Control "no-cache";
add_header Service-Worker-Allowed "/";
}
location /icons/ {
add_header Cache-Control "public, max-age=604800";
}
location / {
try_files $uri $uri/ /index.html;