Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

compressing a website


jaysin

Recommended Posts

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:

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...