浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

 

KeepAlive On
KeepAliveTimeout 15
减少客户端和服务器端之间建立TCP连接的次数
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI ^/auction/checkcode$ no-gzip
输出内容发送到客户端以前进行压缩,以节约带宽。
LoadModule expires_module /opt/taobao/install/httpd/modules/mod_expires.so
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 3 months"
    ExpiresByType image/gif "access plus 1 years"
    ExpiresByType image/png "access plus 1 years"
    ExpiresByType image/jpeg "access plus 1 years"
    ExpiresByType image/x-icon "access plus 10 years"
</IfModule>
启用本地cache,减少客户端与服务器之间的请求数量
posted on 2010-12-01 09:31  浙林龙哥  阅读(247)  评论(0编辑  收藏  举报