cache file has too long header (bug) ?

biazus nginx-forum at nginx.us
Thu Sep 10 17:30:46 UTC 2015


Hey Guys,

I've been using nginx 1.8.0 for a couple of months, and I noticed a critical
message at error log informing that "cache file has too long header". 

2015/09/10 17:11:03 [crit] 27245#0: *10686 cache file
"/data/smallfiles/http/6/d8/f5df8d6eda60819319688d1bc0cb2d86" has too long
header

However, as you can see at the example bellow, there is nothing abnormal
with the file:

cat /data/smallfiles/http/6/d8/f5df8d6eda60819319688d1bc0cb2d86

KEY:
static.myhosthere.com.br/bundles/1234567890123456789012?v=saUVIhIUFNX8o0JpMT9rspK0l6klR4JQBnJXIV1MXkE1
HTTP/1.1 200 OK
Cache-Control: public
Content-Type: text/javascript; charset=utf-8
Content-Encoding: gzip
Expires: Fri, 09 Sep 2016 17:22:25 GMT
Last-Modified: Thu, 10 Sep 2015 17:22:25 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,OPTIONS
Access-Control-Allow-Headers: Content-Type
X-Frame-Options: SAMEORIGIN
Date: Thu, 10 Sep 2015 17:22:24 GMT
Content-Length: 1301

<here is the body>

I thought it would be the header buffer size, but I'm using a very large
value:

 client_body_buffer_size         128k;
 client_header_buffer_size       32k;
 large_client_header_buffers     4 64k;

When this error occurs, the object is fetched from the origin again.

Any ideia ?

Thanks in advance.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261567,261567#msg-261567



More information about the nginx mailing list