From 22e2fad343119e2d4748b95ac3141e384decec67 Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 21 Jul 2024 17:15:43 +0200 Subject: [PATCH] fix: oops nginx was caching for only one hour cache_valid "overrides" inactive?? its complicated, see https://serverfault.com/questions/583570/understanding-the-nginx-proxy-cache-path-directive/641572#641572 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 79712ec..718db35 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ server { proxy_buffering on; proxy_cache upub_cache; proxy_cache_key $host$uri$is_args$args$slice_range; - proxy_cache_valid 200 206 301 304 1h; + proxy_cache_valid 200 206 301 304 168h; proxy_cache_lock on; proxy_pass http://127.0.0.1/; }