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

这个提交包含在:
Eugen Rochko 2019-03-30 03:14:31 +01:00 提交者 GitHub
父节点 ac650d7a13
当前提交 b7379da6cc
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入0 次删除

1
dist/nginx.conf vendored
查看文件

@ -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";