compression not working? Here What You Needs To Do

So many time you enabled gZip or Deflate but still compression not working.Sometime issue is with hosting provider(e.g. 1and1, Hostgator, GoDaddy etc.) which does not enable deflate on shared hosting.

Solution To Enable Compression

Add these two lines in php.ini file

zlib.output_compression =1

zlib.output_compression_level =9

If some of your files are compressed and some are not, then your gzip is working but you might have missed definition in gzip_types

 

Resources for WordPress blog to output pages compressed in gzip

http://stackoverflow.com/questions/12640014/enable-gzip-for-css-and-js-files-on-nginx-server-for-magento

https://codex.wordpress.org/Output_Compression

https://bluehost.blog/account-tips/the-ultimate-guide-to-supercharging-your-wordpress-blog-2097/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s