Home | Blog | Twitter @AndyJ | Contact Me | Snippets/Downloads | RSS

Speed up Apche2 with mod_deflate

Before there was mod_gzip but now in Apache 2 there is mod_deflate. Its pretty much the same, and included with the default source package now. The syntax is pretty much the same. You can set it across the board or on a MIME type basis. Check out the Apache docs for a proper understanding. Currently I am still testing my setup and on my Ubuntu installation I edited the following configuration to add some MIME Type rules
   view plainprintabout
 $ sudo nano etc/apache2/mods-enabled/deflate.conf
The following rules I am using are
   view plainprintabout
 <Location />
 AddOutputFilterByType DEFLATE text/plain
 AddOutputFilterByType DEFLATE text/xml
 AddOutputFilterByType DEFLATE application/xhtml+xml
 AddOutputFilterByType DEFLATE text/css
 AddOutputFilterByType DEFLATE application/xml
 AddOutputFilterByType DEFLATE application/rss+xml
 AddOutputFilterByType DEFLATE application/atom_xml
 AddOutputFilterByType DEFLATE application/x-javascript
10  AddOutputFilterByType DEFLATE text/html
11  <Location>
Do read the docs though, as not all browsers can handle this but there are ways to get around that.
TweetBacks
Comments (Comment Moderation is enabled. Your comment will not appear until approved.)

BlogCFC / created by Raymond Camden / running version 5.9.5.003 / Contact AndyJarrett.com / Pet Rescue SOS