falcon1986 is my hero...

Posted on Saturday, July 11, 2009

I've been looking for ways to make this site more responsive (especially the aggregate pages, like Articles, Tutorials, etc.). Some of these pages can get pretty long, so anything that would optimize how they get from me to you is most welcome.

So I stumbled onto a page from the Yahoo! development team where they talk about compressing pages to save bandwidth. "Gee," thinks I, "that would probably help out a lot." So I go a-googling to see how hard it is to enable any sort of compression on a dynamic website.

Aaaaannnnd... I find lots of links to people complaining about how my host and others like it disable the compression functions on their Apache modules, since can be so CPU intensive.

"Poop!" says I. "There goes that idea..." (sadface).

Then I see this article, Force GZIP compression on your HostMonster-hosted website. Hmm. Innntereeesting. Maybe this will work....

And it did! I modified the code I found there a bit to match what I am already using, uploaded my modified php.ini and .htaccess files, and, et viola!, the site takes off!

We're talking compression ratios of over 75 percent, people. 75 percent!!! That means you dial-up users don't have to twiddle your thumbs (as much), and everyone else is getting a page that has an almost audible snap! as it loads...

So I'm very happy right about now.

:]