nginx: nevermind applogos caching, nowadays nginx/browsers automatically cache static assets with etags etc ?

This commit is contained in:
Alexandre Aubin 2024-02-03 20:28:41 +01:00
parent 8823ef0a2c
commit f248086fb6
2 changed files with 0 additions and 6 deletions

View file

@ -23,9 +23,6 @@ location /yunohost/admin/ {
location /yunohost/admin/applogos/ {
alias /usr/share/yunohost/applogos/;
expires 1M;
# max-age in seconds, one month
add_header Cache-Control "max-age=2629746, public";
}
more_set_headers "Content-Security-Policy: upgrade-insecure-requests; default-src 'self'; connect-src 'self' https://paste.yunohost.org wss://$host; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; object-src 'none'; img-src 'self' data:;";

View file

@ -15,9 +15,6 @@ location /yunohost/sso/ {
location /yunohost/sso/applogos/ {
alias /usr/share/yunohost/applogos/;
expires 1M;
# max-age in seconds, one month
add_header Cache-Control "max-age=2629746, public";
}
more_set_headers "Content-Security-Policy: upgrade-insecure-requests; default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; object-src 'none'; img-src 'self' data:;";