Bug #1091

mod_deflate + mod_proxy_core + X-Sendfile does not return page content for HTTP clients without compression support

Added by Anonymous almost 13 years ago. Updated over 11 years ago.

Missing Feedback
Target version:
Start date:
Due date:
% Done:


Estimated time:
Missing in 1.5.x:


We are using lighttpd with mod_deflate, mod_proxy_core and X-Sendfile to serve static pages from /dev/shm cache. If HTTP client has compression disabled, lighttpd returns proper headers without content at all.


ab -v 5 -n 1 -c 1 -H "Accept-Encoding: gzip" 

works ok

ab -v 5 -n 1 -c 1
returns the following headers, but no content:
LOG: header received:
HTTP/1.0 200 OK
Content-type: text/html
ETag: "-2667053398680807985" 
Accept-Ranges: bytes
Last-Modified: Thu, 22 Mar 2007 17:46:32 GMT
Content-Length: 64313
Connection: close
Date: Thu, 22 Mar 2007 18:18:26 GMT
Server: Web 2.0

LOG: Response code = 200

mod_deflate works correctly for PHP scripts which are not using X-Sendfile as well as for static files.

In case the bug is not easily reproduced, I can send you our configuration details by email.

-- michal.jaskolski at


Updated by Anonymous almost 13 years ago

We have added a workaround in PHP code: X-Sendfile is not used if $_SERVERHTTP_ACCEPT_ENCODING is not set.

-- michal.jaskolski at


Updated by jan almost 13 years ago

formatted the description a bit


Updated by jan almost 13 years ago

  • Status changed from New to Fixed
  • Resolution set to worksforme

can't reproduce in r1789


Updated by stbuehler over 11 years ago

  • Status changed from Fixed to Missing Feedback

Also available in: Atom