From 26a75c867d860c15b325f4158cf46f15f90f2673 Mon Sep 17 00:00:00 2001 From: lvsi <15239928381@163.com> Date: Sun, 19 Feb 2023 16:55:34 +0800 Subject: [PATCH] fix: fix the wrong spelling of proxy_cache_key config --- conf/nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;