What's the difference between the "gzip" and "deflate" HTTP 1.1 encodings?
2013-03-31 13:03
591 查看
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 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 specification 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.
Bottom line: use the gzip format for HTTP 1.1 encoding.
相关文章推荐
- What's the difference between the "gzip" and "deflate" HTTP 1.1 encodings?
- What is the difference between .NET 1.1,2.0,3.0,3.5 and 4.0
- What is the difference between HTTP_CLIENT_IP and HTTP_X_FORWARDED_FOR
- What is the Difference Between http and https?
- What are the differences between HDMI versions 1.1, 1.2, 1.3a, 1.4a and 2.0?
- overload与override的区别 What is the difference between overload and override
- What are the difference between DDL, DML and DCL commands?
- What is the difference between ++i and i++
- what is the difference between _source and _all in Elasticsearch
- What is the difference between procedural and nonprocedural language?
- What is the difference between Listview and Treeview?
- What’s the difference between a stack and a heap?
- What is the difference between tag and branch-id?
- What is the difference between getWidth/heigth() and getMeasuredWidth/Heigth() in Android SDK?
- What’s The Difference Between A Codec, Container And Video Format?
- What is the difference between SSH and SSL?
- What's the difference between CUDA shared and global memory?
- What is the difference between pages and blocks?
- Q&A: What's the difference between CustomControl and UserControl?
- What’s the difference between machine learning, statistics, and data mining?