diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 83a261a..3ea3adf 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -30,6 +30,12 @@ server { add_header Content-Disposition "attachment; filename=visitorkiosk.apk"; } + # Static assets (JS, CSS, images, fonts) + location /assets/ { + try_files $uri =404; + add_header Cache-Control "public, max-age=31536000, immutable"; + } + # Frontend SPA routing location / { try_files $uri $uri/ /index.html;