Wednesday - September 01, 2004
gzip compression

Amit wrote about how to enable gzip compression on sites using PHP, and since almost all of my sites use PHP it was a perfect match. A few months ago I turned on mod_gzip in Apache but I ran into some snags and eventually turned it off.

All I had to do for this solution was add the following line to .htaccess.

php_value output_handler ob_gzhandler

The handy gzip compression test says I got the following bandwidth savings:

Site Size before Size after Bandwidth savings
This site 40.7KB 10.6KB 74%
Coin collecting blog 20.1KB 6.9KB 66%
Hersam family site 5.7KB 2.6KB 55%

The sites feel zippier too.





  1. 74%? good god!

    be sure to post after a month or so if see drastic improvements. :)

      » Comment by fanteja2000 on September 2, 2004 @ 2:44 pm
  2. improvements in bandwidth savings I mean…

      » Comment by fanteja2000 on September 2, 2004 @ 2:44 pm


Post a comment










# of readers
- home
meta
comics
news links
other links

about me
blog archives
docs
entertainment
experiences
funny lists
humor
intellectual
interests
mefi
music
opinions
photos
web designs
tools
webmaster help

Sign up
Enter your e-mail address to be notified of new posts



Search blog archives

Calendar
September 2004
S M T W T F S
« Aug   Oct »
 1234
567891011
12131415161718
19202122232425
2627282930  



Random quote
(View all quotes)
"I see said the blind man to his deaf dog."










Licensed under Creative Commons
(?) Choose theme:  X X X X X X


W3CCSS
Loaded in 0.1301 seconds