adjust cache time

This commit is contained in:
Karol Wypchlo 2020-07-30 21:15:21 +02:00
parent 87e6e8c7a9
commit 3ac40b5b22
1 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ server {
include /etc/nginx/conf.d/include/cors;
limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time
add_header Cache-Control "public, max-age=31536000, immutable"; # allow consumer to cache response
add_header Cache-Control "public, max-age=86400"; # allow consumer to cache response
# we need to explicitly use set directive here because $1 will contain the skylink with
# decoded whitespaces and set will re-encode it for us before passing it to proxy_pass
@ -204,7 +204,7 @@ server {
include /etc/nginx/conf.d/include/cors;
limit_conn downloads_by_ip 100; # ddos protection: max 100 downloads at a time
add_header Cache-Control "public, max-age=31536000, immutable"; # allow consumer to cache response
add_header Cache-Control "public, max-age=86400"; # allow consumer to cache response
# we need to explicitly use set directive here because $1 will contain the skylink with
# decoded whitespaces and set will re-encode it for us before passing it to proxy_pass