Why do real-world servers prefer gzip over deflate encoding?

后端 未结 6 1096
小鲜肉
小鲜肉 2020-12-07 14:58

We already know deflate encoding is a winner over gzip with respect to speed of encoding, decoding and compression size.

So why do no large sites (that I can find) s

6条回答
  •  不知归路
    2020-12-07 15:27

    Check this website for more information: http://web.archive.org/web/20120321182910/http://www.vervestudios.co/projects/compression-tests


    Deflate, per spec, is actually zlib (a compression format developed specifically for streaming content over the web)...which is a wrapper around deflate.

    Internet Explorer, however, incorrectly implements HTTP 1.1 deflate (zlib) as raw deflate. So if your server sends correct HTTP 1.1 deflate (zlib) content to IE it chokes.

    I've researched the topic a bit and it looks safe to ALWAYS send raw deflate to modern browsers...just make sure its is, in fact, raw and not zlib.

    Check this article for more information > Gzip vs Deflate (zlib) revisited.

    So I think that there is a good reason TO continue sending deflate over gzip.

提交回复
热议问题