Nginx fastcgi_cache_key Howto
August 21, 2011 by admin  · Leave a Comment 
 
Nginx fastcgi_cache_key Howto:
syntax: fastcgi_cache_key line
default: none
context: http, server, location
The directive sets the key for caching, for example:
fastcgi_cache_key localhost:9000$request_uri;
Be advised that a HEAD request can cause an empty response to be cached & later be distributed to GET requests, avoid this by having $request_method in the cache key.