title: How to ONLY compress documents above 150 bytes served by Apache?
body: <p>Google tell us <a href="http://code.google.com/speed/page-speed/docs/payload.html#GzipCompression" rel="nofollow">here</a>, that:</p>
  
  <p>"...gzipping is only beneficial for larger resources. Due to the overhead and latency of compression and decompression, you should only gzip files above a certain size threshold; we recommend a minimum range between 150 and 1000 bytes. Gzipping files below 150 bytes can actually make them larger."</p>
  
  <p>I currently use </p>
  
  <pre><code>&lt;ifModule mod_gzip.c&gt;
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  &lt;/ifModule&gt;
  </code></pre>
  
  <p>in my .htaccess. How can I make this only apply to files above 150 bytes?</p>
  
  <p>Thanks.</p>