apache加速模块Google mod_pagespeed的安装(3)
ModPagespeedEnableFilters inline_css,inline_javascript
ModPagespeedEnableFilters insert_img_dimensions
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters elide_attributes
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters extend_cache
ModPagespeedEnableFilters remove_quotes
ModPagespeedDisableFilters rewrite_images
ModPagespeedDomain *
ModPagespeedFileCacheSizeKb 102400
ModPagespeedFileCacheCleanIntervalMs 3600000
ModPagespeedLRUCacheKbPerProcess 1024
ModPagespeedLRUCacheByteLimit 16384
ModPagespeedCssInlineMaxBytes 2048
ModPagespeedImgInlineMaxBytes 2048
ModPagespeedJsInlineMaxBytes 2048
ModPagespeedCssOutlineMinBytes 3000
ModPagespeedJsOutlineMinBytes 3000
ModPagespeedImgMaxRewritesAtOnce 8
<location /mod_pagespeed_beacon>
SetHandler mod_pagespeed_beacon
</location>
<location /mod_pagespeed_statistics>
Order Deny,Allow
Allow from all
SetHandler mod_pagespeed_statistics
</location>
</ifmodule>
<directory /www/fromidea>
<ifmodule headers_module>
<filesmatch "\.(shtml|html|htm)$">
Header unset Etag
Header set Cache-control "max-age=0, no-cache, no-store"
</filesmatch>
<filesmatch "\.(jpg|jpeg|gif|png|js|css)$">
Header unset Etag
Header set Cache-control "public, max-age=600"
</filesmatch>
</ifmodule>
</directory>
顶(0)
踩(0)
上一篇:Apache 并发优化设置
- 最新评论