Frontend: Correct cache control headers

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-02-08 10:34:42 +00:00
parent 7c68503963
commit 6789f44f3b
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ http {
gzip_static on; gzip_static on;
brotli_static on; brotli_static on;
error_page 404 /404.html; error_page 404 /404.html;
expires 2d; expires 3600;
add_header Cache-Control "public, no-transform"; add_header Cache-Control "public, no-transform";
} }
@ -53,7 +53,7 @@ http {
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_ignore_headers Cache-Control;
proxy_cache_valid 200 10080m; proxy_cache_valid 200 10080m;
expires 7d; expires 3d;
add_header Cache-Control "public, no-transform"; add_header Cache-Control "public, no-transform";
} }
} }