]> cat aescling's git repositories - mastodon.git/commitdiff
Cache error 410 responses in recommended nginx configuration (#10425)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 30 Mar 2019 02:14:31 +0000 (03:14 +0100)
committerGitHub <noreply@github.com>
Sat, 30 Mar 2019 02:14:31 +0000 (03:14 +0100)
dist/nginx.conf

index 3d57417657002af4d722ee3cfa11d82b0afc03d6..7c429bad42e5b25127db73d487968dd66e4e62e8 100644 (file)
@@ -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";