From 9be7f9637eaabff53dc59a5133c9383682cb82ed Mon Sep 17 00:00:00 2001 From: Reece Date: Thu, 25 Sep 2025 14:45:58 +0100 Subject: [PATCH] nginx changes --- docker/frontend/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/frontend/nginx.conf b/docker/frontend/nginx.conf index b8521eb5b..82ba1f415 100644 --- a/docker/frontend/nginx.conf +++ b/docker/frontend/nginx.conf @@ -90,14 +90,14 @@ http { proxy_set_header X-Forwarded-Port $server_port; } - # Serve .mjs files with correct MIME type + # Serve .mjs files with correct MIME type (must come before general static assets) location ~* \.mjs$ { add_header Content-Type text/javascript; expires 1y; add_header Cache-Control "public, immutable"; } - # Cache static assets + # Cache other static assets location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { expires 1y; add_header Cache-Control "public, immutable";