Browse Source

Cache error 410 responses in recommended nginx configuration (#10425)

master
Eugen Rochko 2 months ago
parent
commit
b7379da6cc
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      dist/nginx.conf

+ 1
- 0
dist/nginx.conf View File

@@ -78,6 +78,7 @@ server {
78 78
 
79 79
     proxy_cache CACHE;
80 80
     proxy_cache_valid 200 7d;
81
+    proxy_cache_valid 410 24h;
81 82
     proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
82 83
     add_header X-Cached $upstream_cache_status;
83 84
     add_header Strict-Transport-Security "max-age=31536000";

Loading…
Cancel
Save