jaysin Posted June 24, 2003 Posted June 24, 2003 Just add these two lines to your .htaccess will increase speed of your website php_flag zlib.output_compression on php_value zlib.output_compression_level 9 Basically this will compress the website upto level 9 which can be changed to any value between -1 to 9. To use this you must have zlib support enabled :wink:
sirmanix Posted July 11, 2003 Posted July 11, 2003 does it do the same as if I would enable Enable HTTP GZip compression in admin - configuration? any disadvantages at all if I enable it? thanks 4 any help :)
mazza Posted July 12, 2003 Posted July 12, 2003 Admin settings affect the catalog only. With this you can speed up the admin side too. "Use no way as way, have no limitation as limitation." - Bruce Lee
Daemonj Posted July 12, 2003 Posted July 12, 2003 Very rarely will you want to compress to a level of 9 as the extra work the server has to perform reduces any benefit. Typically a setting of 1 or 2 is more than adequate. GZip test your site to find the optimum setting. Remember that the more compression that is put into effect the more work the server has to do for every request. When you have a lot of users requesting a lot of pages, your site will be slower than a snail if the server is trying to compress every page that much. As with everything, there is a point of diminishing returns and 3 is usually the limit with GZip. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
jaysin Posted July 14, 2003 Author Posted July 14, 2003 Hi, Daemonj GZip test your site to find the optimum setting. thanks for the above test link. Yes you are right about setting up to level 1-2 has almost same effect and will only increase by another 2 to 3% compression if we setup to level 9.
Guest Posted October 28, 2005 Posted October 28, 2005 does gzip have to be enabled for this to work? how do i know if i have zlib support?
Antonio Garcia Posted October 29, 2005 Posted October 29, 2005 GZip test your site to find the optimum setting. Dear Jim: Thanks for the link (interesting tip!). I know the level of compression I must put into my web. Antonio
Recommended Posts
Archived
This topic is now archived and is closed to further replies.