From 7af25544c3940c4d046c51f4cfac9c72a06d4f50 Mon Sep 17 00:00:00 2001 From: Roman Rizzi Date: Wed, 27 Jul 2022 16:41:44 -0300 Subject: [PATCH] SECURITY: Do not cache error responses for static assets (stable) --- config/nginx.sample.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 07dcfd9d3d4..a791d82dc2d 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -247,7 +247,6 @@ server { proxy_cache one; proxy_cache_key "$scheme,$host,$request_uri"; proxy_cache_valid 200 301 302 7d; - proxy_cache_valid any 1m; proxy_cache_bypass $bypass_cache; proxy_pass http://discourse; break;