From 3ac40b5b22d8aafa81578a2c3af47fc1957b453d Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 30 Jul 2020 21:15:21 +0200 Subject: [PATCH] adjust cache time --- docker/nginx/conf.d/client.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index bd7bedc1..39733062 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -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