Skip to content

Commit

Permalink
fix: fix the wrong spelling of proxy_cache_key config
Browse files Browse the repository at this point in the history
  • Loading branch information
WGrape committed Feb 19, 2023
1 parent 9ac005c commit 26a75c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 26a75c8

Please sign in to comment.