title: Mod_deflate and mod_header settings?
body: <p>I've finally gotten a VPS hosting account set up this allows me to use mod_deflate and mod_header (of course). I'm attempting to make my site faster by YSlow's guidelines which include gzipping (via mod_deflate) the pages and setting a long expire header.</p>
  
  <p>What would the .htaccess code for this look like? I've seen various examples but I'm wondering what it would look like to fit those parameters.</p>
  
  <p>For example</p>
  
  <pre><code># Mod_deflate
  &lt;IfModule mod_deflate.c&gt;
  AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
  SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|iso|tar|bz2|sit|rar|png|jpg|gif|jpeg|flv|swf)$ no-gzip dont-vary
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.[0678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  Header append Vary User-Agent env=!dont-vary
  &lt;/IfModule&gt;
  </code></pre>