diff --git a/conf/nginx/nginx.conf b/conf/nginx/nginx.conf index 50e8b78..84a450d 100644 --- a/conf/nginx/nginx.conf +++ b/conf/nginx/nginx.conf @@ -50,7 +50,7 @@ http { proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=my_cache:10m inactive=60m; # 定义缓存键和有效期 - proxy_cache_key "$scheme_$request_method_$host_$request_uri"; + proxy_cache_key "$scheme$request_method$host$request_uri"; proxy_cache_valid 200 1m; proxy_cache_valid 404 1m;