From b7379da6ccb7ff5aa8c8b5ac7763fd30d9681948 Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Sat, 30 Mar 2019 03:14:31 +0100
Subject: [PATCH] Cache error 410 responses in recommended nginx configuration
 (#10425)

---
 dist/nginx.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dist/nginx.conf b/dist/nginx.conf
index 3d5741765..7c429bad4 100644
--- a/dist/nginx.conf
+++ b/dist/nginx.conf
@@ -78,6 +78,7 @@ server {
 
     proxy_cache CACHE;
     proxy_cache_valid 200 7d;
+    proxy_cache_valid 410 24h;
     proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
     add_header X-Cached $upstream_cache_status;
     add_header Strict-Transport-Security "max-age=31536000";