chore: disable cache

This commit is contained in:
Alessandro Pezzè 2021-09-01 19:16:46 +02:00
parent fe5a0d8f5e
commit a3aec3971c

View file

@ -89,19 +89,18 @@ http {
}
location /graphql/v1beta {
proxy_read_timeout 70s;
proxy_cache small;
proxy_cache_valid 200 10d;
proxy_cache_valid any 0;
proxy_cache_methods POST;
proxy_cache_key "$request_method$request_uri$request_body";
# proxy_cache small;
# proxy_cache_valid 200 10d;
# proxy_cache_valid any 0;
# proxy_cache_methods POST;
# proxy_cache_key "$request_method$request_uri$request_body";
limit_req zone=graphqlDefaultLimit burst=100 nodelay;
limit_req_status 429;
expires 30m; # client-side caching, one minute for each API resource
add_header Cache-Control "public";
add_header Pragma public;
add_header X-Proxy-Cache $upstream_cache_status;
add_header X-Cache-Date $upstream_http_date;
# add_header X-Proxy-Cache $upstream_cache_status;
# add_header X-Cache-Date $upstream_http_date;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";