Apache上使用mod_deflate压缩网页输出

Posted by eDWARD at 17:06

    配置mod_deflate模块

  1. 因为我已经安装了mod_deflate模块,所以现在只需要配置apache的httpd.conf文件就可以了,就可以把css,javascript,html压缩70%左右。

    或者把SetEnvIfNoCase替换成

    不管哪种方法都是为了把某些不需要压缩的文件排出,这样被压缩过的网页就会比没有压缩的网页小很多,传输速度也会变快,就是说打开网页会快一些。

  2. 感谢大黄的提醒,虽然在编译Apache的时候编译过这个模块,但当时还不知道是做什么用的……现在可以给网页提速了,果然是个好东东。

Filed In 学习路上 | Study | Tags: | Add a Comment »

Your Comments.

Leave your own response

Leave a Reply.

Comment Form.

Fields denoted with a "*" are required. Your comment may require moderation, please be patient.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>




Your Reply.

Use the following link to trackback from your own site:
http://www.zhangzhang.net/2006/09/apache-mod_deflate/trackback/

Spread the word.

Octopus supports RSS feed for this post RSS 2.0 , and Trackbacks from other blogs.


Fatal error: Call to undefined function get_single_sidebar() in /home/zhangzha/public_html/wp-content/themes/octopus/single.php on line 69