Mobile app version of vmapp.org
Login or Join
Jessie594

: How can I get my website to enable gzip compression? I'm currently trying to increase the speed of my website and I noticed that, when I run it through ismyblogworking.com, I get a message

@Jessie594

Posted in: #Compression #Gzip #Htaccess #PageSpeed

I'm currently trying to increase the speed of my website and I noticed that, when I run it through ismyblogworking.com, I get a message that reads "your blog application doesn't support gzip compression."

Since then, I've tried quite a few things to enable gzip compression. I've updated my Wordpress to 3.8.1 (the most recent update), I've installed W3 Total Cache and I've added the follow code to my .htaccess:

compress text, html, javascript, css, xml:
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
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png


However, I'm still getting the same warning sign, still ranking low for PageSpeed Insights. Can anybody give me some advice as to what I should be doing here? How can I get a WordPress site to enable gzip compression?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Jessie594

1 Comments

Sorted by latest first Latest Oldest Best

 

@YK1175434

Put these lines in your .htaccess and PageSpeed Insights will see your gzip compression:

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


It works for my sites.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme