Compare commits

...

2 Commits

Author SHA1 Message Date
Fred Boniface 1df751c9ca Adjust forwarding 2024-06-18 23:04:39 +01:00
Fred Boniface 60ece7661c Update nginx caching 2024-06-18 23:04:09 +01:00
2 changed files with 3 additions and 8 deletions

View File

@ -56,10 +56,8 @@ http {
gzip_static on; gzip_static on;
brotli_static on; brotli_static on;
error_page 500 502 503 504 /err/50x.html; 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"; add_header Cache-Control "public, no-transform, max-age=1209600";
rewrite ^([^.]*[^/])$ $1/ permanent;
} }
location /misc/ { location /misc/ {
@ -81,9 +79,6 @@ http {
gzip_comp_level 6; gzip_comp_level 6;
gzip_types *; gzip_types *;
proxy_cache_key $scheme://$host$uri$is_args$query_string; 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";
} }
} }

View File

@ -1,3 +1,3 @@
export const version: string = "2024.06.1"; export const version: string = '2024.06.1';
export const versionTag: string = ""; export const versionTag: string = '';
export const showWelcome: boolean = false; export const showWelcome: boolean = false;