nginx update

This commit is contained in:
Reece 2025-09-25 14:04:49 +01:00
parent 883b167e55
commit 4cf106750c

View File

@ -90,6 +90,13 @@ http {
proxy_set_header X-Forwarded-Port $server_port;
}
# Serve .mjs files with correct MIME type
location ~* \.mjs$ {
add_header Content-Type text/javascript;
expires 1y;
add_header Cache-Control "public, immutable";
}
# Cache static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;