From f62e7334eb4a6193628f266677823fec1b19dd16 Mon Sep 17 00:00:00 2001 From: PJ Date: Thu, 3 Mar 2022 13:44:30 +0100 Subject: [PATCH] Only cache successful responses --- docker/nginx/conf.d/server/server.api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index c57ef789..11a3ee75 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -60,7 +60,7 @@ location /skynet/portal/blocklist { add_header X-Proxy-Cache $upstream_cache_status; proxy_cache skynet; - proxy_cache_valid any 15m; # cache portal blocklist for 15 minutes + proxy_cache_valid 200 204 15m; # cache portal blocklist for 15 minutes proxy_pass http://blocker:4000/blocklist; }