I've been working through various optimization issues today and thought i'd share them with my future self and anyone else who reads this.
mod_deflateI'd heard that getting apache to gzip your non-compressed data was a good idea and thought I was probably already doing that with my default apache2 setup on CentOS 4.4. What I learned was that:
- For apache2, the relevant module is mod_deflate (it used to be mod_gzip)
- My CentOS included the apache module by default, but didn't enable it. I did that according to the excellent documentation on the apache web site.
- I found a test site, which says that the html is now about 25% of what it was, saving me bandwidth and increasing the apparent response of my sites.