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 2008/12/15 20:29:09 UTC

DO NOT REPLY [Bug 46401] New: Cache not preserving content-encoding

https://issues.apache.org/bugzilla/show_bug.cgi?id=46401

           Summary: Cache not preserving content-encoding
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: PatchAvailable
          Severity: normal
          Priority: P2
         Component: mod_cache
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: poirier@pobox.com


Created an attachment (id=23024)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23024)
Patch to cache content-encoding

Using mod_cache & mod_disk_cache, a file named foo.html.gz, and

    AddEncoding gzip .gz

The first request for foo.html.gz returns Content-Encoding: gzip,
but the second request, from the cache, doesn't provide a Content-Encoding
header in the response.  Hence the client doesn't expect the
content to be compressed.

This seems similar to PR39266, and a similar fix works for me.  Patch
is attached.


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

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


DO NOT REPLY [Bug 46401] Cache not preserving content-encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46401


Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk




--- Comment #2 from Ruediger Pluem <rp...@apache.org>  2008-12-15 12:45:41 PST ---
Thanks for the patch. Committed to trunk as r726796 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=726796 )


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

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


DO NOT REPLY [Bug 46401] Cache not preserving content-encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46401


Paul J. Reder <re...@remulak.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #3 from Paul J. Reder <re...@remulak.net>  2008-12-16 16:15:24 PST ---
Submitted for backporting.


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

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


DO NOT REPLY [Bug 46401] Cache not preserving content-encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46401





--- Comment #1 from Dan Poirier <po...@pobox.com>  2008-12-15 12:24:42 PST ---
Created an attachment (id=23025)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23025)
Patch for 2.2.x to cache content-encoding

The fix for trunk doesn't apply back to 2.2 due to refactoring.
Here's a patch for mod_mem_cache and mod_disk_cache to resolve
the same problem.


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

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