1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/penpot_ynh.git synced 2024-09-03 19:56:56 +02:00

Fixed NGINX some more

This commit is contained in:
orhtej2 2024-02-10 21:17:47 +01:00
parent aac6bc07c8
commit 757f2076f9

View file

@ -17,7 +17,7 @@ location @handle_redirect {
more_set_headers "x-internal-redirect: '$redirect_uri'"; more_set_headers "x-internal-redirect: '$redirect_uri'";
more_set_headers "x-cache-control: '$redirect_cache_control'"; 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 { location /assets {
@ -43,7 +43,7 @@ location /internal/gfonts/css {
proxy_set_header Accept "*/*"; proxy_set_header Accept "*/*";
more_set_headers "Access-Control-Allow-Origin: $http_origin"; 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"; more_set_headers "X-Cache-Status: $upstream_cache_status";
} }
@ -91,16 +91,16 @@ location / {
# proxy_cache penpot; # proxy_cache penpot;
more_set_headers "Access-Control-Allow-Origin: $http_origin"; 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"; more_set_headers "X-Cache-Status: $upstream_cache_status";
} }
location ~* \.(js|css).*$ { 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).*$ { 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) { location ~ ^/(/|css|fonts|images|js|wasm) {