Update nginx caching

This commit is contained in:
Fred Boniface 2024-04-29 11:59:55 +01:00
parent c93f36102e
commit 60ece7661c

View File

@ -56,7 +56,7 @@ http {
gzip_static on;
brotli_static on;
error_page 500 502 503 504 /err/50x.html;
try_files $uri $uri/ /index.html;
try_files $uri $uri/ $uri.html /index.html;
add_header Cache-Control "public, no-transform, max-age=1209600";
rewrite ^([^.]*[^/])$ $1/ permanent;
@ -81,9 +81,6 @@ http {
gzip_comp_level 6;
gzip_types *;
proxy_cache_key $scheme://$host$uri$is_args$query_string;
proxy_ignore_headers Cache-Control;
proxy_cache_valid 200 2m; # Evaluate whether 2m or 1m is more appropriate
add_header Cache-Control "private, no-transform, max-age=120";
}
}