mod_deflate 支持的压缩编码

发布于 2024-08-30 03:28:11 字数 420 浏览 5 评论 0原文

在我看来,Apache 2.2 中的 mod_deflate 将始终返回:

Content-Encoding: gzip

,而从不返回:

Content-Encoding: deflate

有人向我解释,尽管可能存在 deflate 算法,但 mod_deflate 是以文件格式命名的,其中算法可以是以下任意一种:

gzip、bzip。 pkzip

在这三个中,mod_deflate 提供了 gzip。

似乎 gzip 是网络浏览器中最流行和广泛支持的算法,但我知道一些网络服务器和代理确实返回 Content-Encoding: deflate。

除了模块名称的混乱之外,mod_deflate 真的只会返回 Content-Encoding: gzip 吗?

谢谢。

It seems to me, that mod_deflate in Apache 2.2 will always return:

Content-Encoding: gzip

and never:

Content-Encoding: deflate

It was explained to me, that although there may be a deflate algorithm, mod_deflate is named after a file-format, in which the algorithm could be any of:

gzip, bzip. pkzip

Of those three, mod_deflate provides gzip.

It seems as though gzip is the most popular and widely-supported algorithm in web browsers, but I know some web servers and proxies do return Content-Encoding: deflate.

Aside from the confusion of the module's name, it true that mod_deflate will only return Content-Encoding: gzip?

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫瑟鸿黎 2024-09-06 03:28:11

事实上 mod_deflate 仅支持 deflate。

The fact is mod_deflate supports only deflate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文