xin

proxy_cache_key

HTTP proxy: Defines the cache key.

Syntaxproxy_cache_key string;
Contextshttpserverlocation

Behavior

Use with the matching upstream handler and a configured cache zone. Child-scope cache lists replace inherited lists.

Example

proxy_cache_key "$scheme$request_method$host$request_uri";