From e763ae6839478312049fd4a6f3cb7d0b5ec8d05d Mon Sep 17 00:00:00 2001 From: PaulPickhardt Date: Thu, 12 Sep 2024 13:14:54 +0200 Subject: [PATCH] Set cache valid any 1m --- templates/default.conf.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/default.conf.template b/templates/default.conf.template index 4d1b2bd..9624134 100644 --- a/templates/default.conf.template +++ b/templates/default.conf.template @@ -11,7 +11,7 @@ server { # Define proxy settings for this location proxy_cache_valid 200 302 ${SUCCESS_STORE_TIME}; # Cache successful responses and found content for X minutes proxy_cache_valid 404 ${NOT_FOUND_STORE_TIME}; # Cache 404 errors for X minutes - proxy_cache_valid any 0; # To not cache 50X for example + proxy_cache_valid any 1m; # To cache everything else for 1 minute proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;