Apache mod_deflate - enable for URL? what does Google PageSpeed Insights mean?

43 views
Skip to first unread message

Jack Davis

unread,
Jul 24, 2015, 2:19:22 PM7/24/15
to pagespeed-insights-discuss

I'm browsing Google Speed Insights and it suggested me to enable mod_deflate. There were lot of js and css files that can be smaller when enable. So I added this into my htaccess:

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

After that all css and js files disappeared from Google Page Speed Insights but there is still one item as uncompressed (full-page).


It says:

Compressing resources with gzip or deflate can reduce the number of bytes sent over the network. Enable compression for the following resources to reduce their transfer size by 55.1KiB (83% reduction).

Compressing http://example.com/ could save 55.1KiB (83% reduction).

What does Google mean? How can I enable mod_deflate for this?

Reply all
Reply to author
Forward
0 new messages