Fastcgi_cache Key Length Bug

cromulus nginx-forum at
Thu Apr 7 03:37:21 MSD 2011

When using fastcgi_cache, if the key you are using is too long, say over
255 characters, it appears that fastcgi_cache breaks, and you get errors
that look like this:

*18 upstream sent unsupported FastCGI protocol version: 114 while
reading upstream,

I've encountered this error in 0.8.54 and 0.9.7

this is an example of a url that will break fast_cgi cache:,hoverIntent,common,jquery-color,wp-ajax-response,wp-lists,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,quicktags,jquery-query,admin-comments,jquery-ui-sortable,postbox,dashboard,thickbox,plugin-install&ver=f8890f4269ea35a6d5e30382070f0a89

using this key:

fastcgi_cache_key $host$request_uri$request_method;

fastcgi backend is php-fpm

Ubuntu 9.04
arch: i686

Let me know if there is any other info I can provide to help squash this

Posted at Nginx Forum:,188949,188949#msg-188949

More information about the nginx mailing list