What's the difference between the "gzip" and "deflate" HTTP 1.1 encodi

Source: Internet
Author: User
Tags rfc

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.