Have a strange behavior of fastcgi cache, the variable $content_type does not passes to the cache KEY, configuration: ..... location ~ \.php$ { fastcgi_cache cache; fastcgi_cache_key "$content_type|$request_method|$is_args|$host|$request_uri|$http_referer"; fastcgi_cache_valid any 60m; fastcgi_cache_use_stale error timeout invalid_header http_500 httby namesys - Nginx Mailing List - English