我已使用Mod_pagespeed启用了下面的过滤器,但在通过PageSpeed Insights进行测试时,建议为css资源“启用压缩”,“缩小CSS”和“优化CSS”:
ModPagespeedEnableFilters rewrite_javascript
ModPagespeedEnableFilters rewrite_css
ModPagespeedEnableFilters combine_css
ModPagespeedEnableFilters combine_javascript
ModPagespeedEnableFilters combine_heads
ModPagespeedEnableFilters defer_javascript
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters make_google_analytics_async
ModPagespeedEnableFilters canonicalize_javascript_libraries
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters elide_attributes
ModPagespeedEnableFilters extend_cache
ModPagespeedEnableFilters flatten_css_imports
ModPagespeedEnableFilters lazyload_images
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters inline_import_to_link
ModPagespeedEnableFilters convert_jpeg_to_webp
ModPagespeedEnableFilters inline_google_font_css
ModPagespeedEnableFilters prioritize_critical_css
ModPagespeedEnableFilters rewrite_images
主题网站:http://goo.gl/vX8Dr4
至少对于“启用压缩”部分,据我所知mod_pagespeed自动激活mod_deflate进行压缩,不是吗?
PS:PageSpeed Insights在78到83点之间浮动,不做任何改动。