From 85296026678da04c42775b4c3b16ca01b063b86b Mon Sep 17 00:00:00 2001 From: MayaChat Date: Mon, 24 Nov 2025 13:47:04 -0500 Subject: [PATCH] Add proper headers for manifest and service worker in Nginx configuration --- nginx.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nginx.conf b/nginx.conf index 6cc9afc..d3b1ae9 100644 --- a/nginx.conf +++ b/nginx.conf @@ -44,6 +44,21 @@ http { proxy_read_timeout 5s; } + # Manifest with proper content type + location = /manifest.json { + root /usr/share/nginx/html; + add_header Content-Type application/manifest+json; + add_header Cache-Control "public, max-age=3600"; + } + + # Service worker with proper headers + location = /sw.js { + root /usr/share/nginx/html; + add_header Content-Type application/javascript; + add_header Cache-Control "no-cache, no-store, must-revalidate"; + add_header Service-Worker-Allowed "/"; + } + # Serve static files location / { root /usr/share/nginx/html;