| Syntax: | proxy_cache_key string |
| Default: | $scheme$proxy_host$request_uri |
| Context: | http server location |
| Reference: | proxy_cache_key |
The directive specifies what information is included in the key for caching, for example
proxy_cache_key "$host$request_uri$cookie_user";
Note that by default, the hostname of the server is not included in the cache key. If you are using subdomains for different locations on your website, you need to include it, e.g. by changing the cache key to something like
proxy_cache_key "$scheme$host$request_uri";