diff --git a/nginx.conf b/nginx.conf index ba3c69b1..db0fa344 100644 --- a/nginx.conf +++ b/nginx.conf @@ -46,14 +46,6 @@ http { # 向后端API转发请求 proxy_pass http://backend_api; - - # 设置缓存忽略的请求头 - proxy_ignore_headers Cache-Control; - proxy_ignore_headers Set-Cookie; - - # 设置缓存绕过的条件 - proxy_cache_bypass $http_cache_control $http_pragma $http_authorization; - proxy_no_cache $http_cache_control $http_pragma $http_authorization; } location /api {