mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Cache error 410 responses in recommended nginx configuration (#10425)
This commit is contained in:
parent
ac650d7a13
commit
b7379da6cc
1
dist/nginx.conf
vendored
1
dist/nginx.conf
vendored
@ -78,6 +78,7 @@ server {
|
|||||||
|
|
||||||
proxy_cache CACHE;
|
proxy_cache CACHE;
|
||||||
proxy_cache_valid 200 7d;
|
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;
|
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
|
||||||
add_header X-Cached $upstream_cache_status;
|
add_header X-Cached $upstream_cache_status;
|
||||||
add_header Strict-Transport-Security "max-age=31536000";
|
add_header Strict-Transport-Security "max-age=31536000";
|
||||||
|
Loading…
Reference in New Issue
Block a user