PageSpeed Insights not seeing the Gzip compression

compressiongzipseo

I'm trying to speed up my website. Google insights (https://developers.google.com/speed/pagespeed/insights) tells me that a critical problem is to enable GZip compression.

The address of the site is http://user2.net
It's based on codeigniter framework.

I have enabled gzip compression with folowing changes to my .htaccess file:

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


<files *.html>
SetOutputFilter DEFLATE
</files>

I have tested the site with this tool:
http://www.gidnetwork.com/tools/gzip-test.php
It says that gzip is enabled.

What am I missing?

Best Answer

Did you try these lines in your .htaccess?

<IfModule mod_deflate.c>
<FilesMatch "\.(html|php|txt|xml|js|css)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>

It works for my site.

Related Topic