Posted By

zachharkey on 07/14/09


Tagged

htaccess apache httpdconf


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
nerdfiles


Force gzip compression for all relevant file types.


 / Published in: Apache
 

URL: http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/

These tweaks improved my Yslow score from F to B.

  1. # Compress all text, html, css, and javascript:
  2. AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
  3.  
  4. # Or, compress certain file types by extension:
  5. <Files *.html>
  6. SetOutputFilter DEFLATE
  7. </Files>

Report this snippet  

You need to login to post a comment.