mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
switching from add_header to more_set_headers
This commit is contained in:
parent
2762898566
commit
1f9dc463f2
1 changed files with 6 additions and 6 deletions
|
@ -19,14 +19,14 @@ location / {
|
|||
}
|
||||
|
||||
location ~ ^/(emoji|packs|system/accounts/avatars|system/media_attachments/files) {
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
add_header Strict-Transport-Security "max-age=31536000";
|
||||
more_set_headers "Cache-Control: public, max-age=31536000, immutable";
|
||||
more_set_headers "Strict-Transport-Security: max-age=31536000";
|
||||
try_files $uri @proxy;
|
||||
}
|
||||
|
||||
location /sw.js {
|
||||
add_header Cache-Control "public, max-age=0";
|
||||
add_header Strict-Transport-Security "max-age=31536000";
|
||||
more_set_headers "Cache-Control: public, max-age=0";
|
||||
more_set_headers "Strict-Transport-Security: max-age=31536000";
|
||||
try_files $uri @proxy;
|
||||
}
|
||||
|
||||
|
@ -49,8 +49,8 @@ location @proxy {
|
|||
proxy_cache_valid 200 7d;
|
||||
proxy_cache_valid 410 24h;
|
||||
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
|
||||
add_header X-Cached $upstream_cache_status;
|
||||
add_header Strict-Transport-Security "max-age=31536000";
|
||||
more_set_headers "X-Cached: $upstream_cache_status";
|
||||
more_set_headers "Strict-Transport-Security: max-age=31536000";
|
||||
|
||||
tcp_nodelay on;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue