From a3aec3971c372ccadee6c896c32fc1fe511d18f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Pezz=C3=A8?= Date: Wed, 1 Sep 2021 19:16:46 +0200 Subject: [PATCH] chore: disable cache --- Resources/nginx/nginx.conf | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Resources/nginx/nginx.conf b/Resources/nginx/nginx.conf index 0e1a4cbb..04d4cb29 100644 --- a/Resources/nginx/nginx.conf +++ b/Resources/nginx/nginx.conf @@ -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";