Summary: | Confusing documentation, gzip and deflate | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Ryan4 <ryanchan404> |
Component: | Documentation | Assignee: | HTTP Server Documentation List <docs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.2.22 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
mod_deflate doc patch
Amended explanation about gzip vs deflate |
Description
Ryan4
2012-04-22 05:30:54 UTC
some background: http://www.gzip.org/zlib/zlib_faq.html#faq38 What's the difference between the "gzip" and "deflate" HTTP 1.1 encodings? "gzip" is the gzip format, and "deflate" is the zlib format. They should probably have called the second one "zlib" instead to avoid confusion with the raw deflate compressed data format. While the HTTP 1.1 RFC 2616 correctly points to the zlib specification in RFC 1950 for the "deflate" transfer encoding, there have been reports of servers and browsers that incorrectly produce or expect raw deflate data per the deflate specficiation in RFC 1951, most notably Microsoft. So even though the "deflate" transfer encoding using the zlib format would be the more efficient approach (and in fact exactly what the zlib format was designed for), using the "gzip" transfer encoding is probably more reliable due to an unfortunate choice of name on the part of the HTTP 1.1 authors. Bottom line: use the gzip format for HTTP 1.1 encoding. Can confirm that mod_deflate in Apache 2.4 never uses the deflate encoding, only the gzip encoding. (As Eric Covener says they use the same actual algorithm, also called "deflate", but the "gzip" and "deflate" content-encodings have slightly different headers.) Created attachment 33380 [details]
mod_deflate doc patch
Created attachment 33393 [details]
Amended explanation about gzip vs deflate
After a chat with Humbedooh on #httpd-dev I revised my last patch with something more formal.
Interesting note from Humbedooh: https://pony-poc.apache.org/thread.html/Zbw7u00bnri2c9k The discussion about gzip vs deflate was done a while ago, it might be good to re-think about it since it is 2016 and super old browsers should not be a problem anymore. The patch is helpful. +1 |