adjust cache time
This commit is contained in:
parent
87e6e8c7a9
commit
3ac40b5b22
|
@ -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
|
||||
|
|
Reference in New Issue