add proxy_cache_key
This commit is contained in:
parent
2771c35518
commit
48bfecda7e
1 changed files with 2 additions and 0 deletions
|
|
@ -53,6 +53,8 @@ server {
|
|||
proxy_cache_lock on;
|
||||
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
|
||||
proxy_cache_background_update on;
|
||||
# use actual host instead of proxy host for cache key
|
||||
proxy_cache_key $scheme$host$uri$is_args$args;
|
||||
# for debugging purposes, add the following header
|
||||
#add_header X-Cache-Status $upstream_cache_status;
|
||||
{% else %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue