From 757f2076f9f6930f6c35dcd40270f7e8bfca337d Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sat, 10 Feb 2024 21:17:47 +0100 Subject: [PATCH] Fixed NGINX some more --- conf/nginx.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 919fa8d..ea65458 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -17,7 +17,7 @@ location @handle_redirect { more_set_headers "x-internal-redirect: '$redirect_uri'"; more_set_headers "x-cache-control: '$redirect_cache_control'"; - more_set_headers "cache-control: '$redirect_cache_control'"; + more_set_headers "cache-control: '$redirect_cache_control' -s '200 201 206 301 302 303 307 308'"; } location /assets { @@ -43,7 +43,7 @@ location /internal/gfonts/css { proxy_set_header Accept "*/*"; more_set_headers "Access-Control-Allow-Origin: $http_origin"; - more_set_headers "Cache-Control: max-age=86400"; + more_set_headers "Cache-Control: max-age=86400 -s '200 201 206 301 302 303 307 308'"; more_set_headers "X-Cache-Status: $upstream_cache_status"; } @@ -91,16 +91,16 @@ location / { # proxy_cache penpot; more_set_headers "Access-Control-Allow-Origin: $http_origin"; - more_set_headers "Cache-Control: max-age=86400"; + more_set_headers "Cache-Control: max-age=86400 -s '200 201 206 301 302 303 307 308'"; more_set_headers "X-Cache-Status: $upstream_cache_status"; } location ~* \.(js|css).*$ { - more_set_headers "Cache-Control: 'max-age=86400' always"; # 24 hours + more_set_headers "Cache-Control: 'max-age=86400'"; # 24 hours } location ~* \.(html).*$ { - more_set_headers "Cache-Control: 'no-cache, max-age=0' always"; + more_set_headers "Cache-Control: 'no-cache, max-age=0'"; } location ~ ^/(/|css|fonts|images|js|wasm) {