GZip or Deflate for HTTP compression

梦想的初衷 提交于 2019-12-05 08:49:50
eigenein

UPDATE

According to the latest updates to the linked question, one should use GZip. See http://www.vervestudios.co/projects/compression-tests/results

Old Answer

Deflate is better.

As I have written here: HTTP_compression - Wikipedia

deflate - despite its name the zlib compression (RFC 1950) should be used (in combination with the deflate compression (RFC 1951)) as described in the RFC 2616. The implementation in the real world however seems to vary between the zlib compression and the (raw) deflate compression[3][4]. Due to this confusion, gzip has positioned itself as the more reliable default method (March 2011).

gzip and zlib are file/stream formats that by default wrap around deflate and amongst other things add a checksum which make them more secure and a little slower. The increase in size on the other hand should not be of any concern.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!