PinoyTech.org

CodeIgniter, Kohana, Mootools, jQuery and CSS

How to Gzip your Site

Posted by teejay on November 16, 2009

Gzipping as many file types as possible is an easy way to reduce page weight and accelerate the user experience. -Yahoo Developer Network Blog

Gzip is one of the most popular ways to compress site components resulting in a faster loading website or webpage.

Do you want to speed up your website via gzip.? Who doesn't want that? So, here's a way.

  1. If you are on Apache, make sure you have mod_gzip enabled
  2. Open up your .htaccess file
  3. Add the following line to your .htaccess file:
    php_value output_handler ob_gzhandler
    
  4. You're done!

Categories: How To

Tags: htaccess, gzip

No Comments

Comments are not allowed