You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/11/19 13:10:11 UTC

DO NOT REPLY [Bug 32315] New: - mod_disk_cache with mod_proxy sends duplicate headers, breaks Firefox

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32315>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32315

           Summary: mod_disk_cache with mod_proxy sends duplicate headers,
                    breaks Firefox
           Product: Apache httpd-2.0
           Version: 2.0.52
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_disk_cache
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: asf@element80.net


mod_disk_cache appears to be badly broken when used in combination with
mod_proxy (acting as a reverse proxy) and a Zope site.  The initial page fetch
to the relayed page works correctly, but subsequent cache hits return duplicated
headers.  This includes a second "Content-Encoding: gzip" header, which breaks
Mozilla Firefox.  The page renders as garbage because it cannot be
doubly-decompressed.

A forced refresh (shift-F5) returns a correct response but only for that one
request.

The problem vanishes if mod_disk_cache is swapped with mod_mem_cache, or if the
cache is disabled.

I do not think that Zope site in particular is related to this bug, although I
haven't been able to try other gzip-enabled sites behind my reverse proxy.


Here is a typical request and the incorrect response headers:

GET /news HTTP/1.1
Host: www.haloplayers.org
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.haloplayers.org/

HTTP/1.1 200 OK
Date: Fri, 19 Nov 2004 11:45:16 GMT
Server: Zope/(unreleased version, python 2.3.3, linux2) ZServer/1.1 Plone/2.0.4
Content-Language:
Content-Encoding: gzip
Expires: Sat, 1 Jan 2000 00:00:00 GMT
Vary: Accept-Encoding
Etag:
Pragma: no-cache
Content-Length: 4340
Content-Language:
Content-Encoding: gzip
Expires: Sat, 1 Jan 2000 00:00:00 GMT
Etag:
Pragma: no-cache
Content-Type: text/html;charset=utf-8


(I am using 2.0.51-2 Fedora Core 2 httpd packages, which include versions of
mod_cache and mod_disk_cache that are identical to those shipped with 2.0.52)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org