Complete the code to set the proxy cache key using the request URI.
proxy_cache_key [1];The proxy_cache_key directive defines the key used to store cached responses. Using $request_uri ensures the cache key is based on the full request URI.
Complete the code to include the request method in the proxy cache key.
proxy_cache_key [1]$request_uri;Including $request_method in the cache key differentiates cache entries by HTTP method (GET, POST, etc.).
Fix the error in the proxy cache key to include the host and URI correctly.
proxy_cache_key [1]$request_uri;The correct way to include the host and URI is by using $host followed by $request_uri. This ensures the cache key is unique per host and URI.
Fill both blanks to create a cache key that includes the host and the request method.
proxy_cache_key [1][2]$request_uri;
Combining $host and $request_method before $request_uri creates a cache key that varies by host and HTTP method.
Fill all three blanks to create a cache key that includes the host, request method, and a custom header 'X-User'.
proxy_cache_key [1][2][3]$request_uri;
$http_ prefix for custom headers.This cache key includes the host, HTTP method, and the custom header X-User (accessed as $http_x_user) before the request URI. This ensures caching varies by these values.