Frequently Asked Questions about zlib
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 shoshould 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 has CT raw deflate data per the deflate specification in RFC 1951, most notably Microsoft. so even though the "deflate" Transfer Encoding using the zlib format wocould be the more efficient approach (and in fact exactly what the zlib format was designed ), 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.