mod_deflate or mod_gzip, which should be used?

荒凉一梦 提交于 2019-12-18 16:49:41

问题


mod_deflate or mod_gzip, which should be used?

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


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/3173147/mod-deflate-or-mod-gzip-which-should-be-used

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