I'd like to compress the JS and CSS (perhaps also html?) files that I'm sending out. I've read a lot about gzip and mod_deflate but I'm not really sure what's the best to use?
I'm looking for the easiest thing to maintain and to reduce bandwidth on my web app.
Introduction
mod_deflate is the module available to achieve Gzip compression in Apache2.
mod_gzip in Apache1 has been replaced with mod_deflate in Apache2.
It does a really good job at compressing.
Sample config
Here's a sample configuration which compresses HTML, CSS, JS, RSS (depending on the browser):
Tutorial
Also, here's a tutorial about mod_deflate for Apache2.
It looks like mod_gzip was renamed to mod_deflate in Apache 2.
http://developer.yahoo.net/blog/archives/2007/07/high_performanc_3.html
Of note in the article is that anything under 1K in size isn't really worth compressing. The mod_deflate page states that it doesn't compress images either (I'd post the link but I lack the reputation).