apache配置

 

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,减少客户端与服务器之间的请求数量
原文地址:https://www.cnblogs.com/huqingyu/p/1892681.html