The instructions given in tutorials is too brief (for people like me) to understand how it works. It’s mentioned it may vary from server to server and a sample code is given that is used for the theme demo server but it’s not mention where does it go, i.e. in which file. I contacted our hosting company but they said Gzip cannot be used on any shared hosting plan! I am not sure if he understood the question so am trying to verify with you if that really is the case. Thanks.
gzip/deflate should be on for all sites on any hosting plan — if they don’t support it, get another host.
Basically gzip/deflate helps compress the content sent by server to web browser to make the packet smaller, and this alone is good for 20 points on pagespeed tests.
That helps! I am using InMotion’s Webhostinghub as my host. Where and in which file do I enter the code?
a) on “most” servers, gzip/deflate must be “on” at server level – you have no access to that
b) on “some” servers you need to add text to the .htaccess file to enable (sound like your host is saying ‘no’ ?)
info/how to
https://varvy.com/pagespeed/enable-compression.html
You may find my tutorial info useful
https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/
(( I don’t work here … ))
Wow! that’s a whole lot of info! Thanks, Chris, and wait for my next blog on “great tips to optimize your website” and you may find there all your stuff copy-pasted! 🙂 (joking). Sure, your voluntary service here is useful.
I actually have a book I’m working on for optimizing WordPress sites, which is super inclusive with screen shots, example code, speed test graphs, etc. — still working on it; got sidetracked by Google abandoning mod_SPDY for https, and http/2 rolling out which is successor to that on Apache servers, and PHP7 which speeds up WordPress sites by about 50% in some cases just using that …. whole lot of changes as I was getting about halfway done. So, that will be coming soon, but will be updated with all the bleeding edge stuff — and now, AMP tech as well. Never ending !
But – the ebook will have companion site with updates that the book buyers will have access to.
So, stay tuned for that! 😉
-
This reply was modified 10 years by
simchris.
My site is hosted on Knownhost dedicated Server. How can I know whether Gzip compression is enabled or not. What all can I ask my webhost to best optimize my WordPress blog for fast and speed. Additionally I use Cloudflare $20 monthly plan for improving speed of the site. The site is technosamigos.com.
Got through Chris’ suggestions – https://varvy.com/tools/gzip/
Hello,
What our tutorial section provides: http://screencast.com/t/RMywpx6s is the only thing we can on this topic as the compression must be done by the hosting provider. Please contact your hosting provider as he will have the information you seek.
Thank you!
I checked Gzip is on on our host server so that’s done. Thanks.