Project

General

Profile

Bug #1091

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

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

Status:
Missing Feedback
Priority:
Urgent
Assignee:
-
Category:
mod_deflate
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

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.

Example:


ab -v 5 -n 1 -c 1 -H "Accept-Encoding: gzip" http://www.nokaut.pl/ 

works ok


ab -v 5 -n 1 -c 1 http://www.nokaut.pl/
}}} 
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
..done

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 nokaut.pl

History

#1

Updated by Anonymous over 12 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 nokaut.pl

#2

Updated by jan over 12 years ago

formatted the description a bit

#3

Updated by jan over 12 years ago

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

can't reproduce in r1789

#4

Updated by stbuehler almost 11 years ago

  • Status changed from Fixed to Missing Feedback

Also available in: Atom