mod_deflate 或 mod_gzip,应该使用哪个?

发布于 2024-09-08 06:45:27 字数 143 浏览 1 评论 0原文

mod_deflatemod_gzip,应该使用哪个?

我阅读了 mod_gzip 的更好解释,但想了解更多关于 mod_deflate 的信息。

mod_deflate or mod_gzip, which should be used?

I read mod_gzip on better explained but want to know extra about mod_deflate.

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

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

发布评论

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

评论(2

心房敞 2024-09-15 06:45:27

您应该阅读 Stephen Pierzchala 撰写的“使用 mod_gzip 和 mod_deflate 压缩 Web 内容”。

从实用的角度来看,我建议使用 mod_deflate 因为它很容易配置,有据可查,并积极维护。此外,您的服务器很可能可以使用 mod_deflate 的预编译版本。 Apache 甚至可能附带 mod_deflate,就像 Windows 安装程序和 apache2.2-bin Debian 软件包一样。

You should read "Compressing Web Content with mod_gzip and mod_deflate" by Stephen Pierzchala.

From a pragmatic point of view, I suggest mod_deflate because it is easy to configure, well documented, and actively maintained. Also, a precompiled version of mod_deflate is more than likely available for your server. Apache may even come with mod_deflate, as is the case with the Windows installer and apache2.2-bin Debian package.

挽清梦 2024-09-15 06:45:27

在寻找 mod_deflate 时,我最终阅读了 这篇文章,以及这个答案。对我来说,归根结底就是添加

AddOutputFilterByType DEFLATE application/javascript text/css

我的 .htaccess,仅此而已。

While looking for mod_deflate, I ended up reading this article, and this answer. For me, it boils down to add

AddOutputFilterByType DEFLATE application/javascript text/css

on my .htaccess and that is it.

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