Skip to content

Commit

Permalink
Cache error 410 responses in recommended nginx configuration (#10425)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Mar 30, 2019
1 parent ac650d7 commit b7379da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/nginx.conf
Expand Up @@ -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";
Expand Down

0 comments on commit b7379da

Please sign in to comment.