mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-21 19:03:08 +00:00
chore: disable cache
This commit is contained in:
parent
fe5a0d8f5e
commit
a3aec3971c
1 changed files with 7 additions and 8 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue