Return to Snippet

Revision: 15715
at July 14, 2009 14:01 by zachharkey


Initial Code
# Compress all text, html, css, and javascript:
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript

# Or, compress certain file types by extension:
<Files *.html>
SetOutputFilter DEFLATE
</Files>

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

Initial Description
These tweaks improved my Yslow score from F to B.

Initial Title
Force gzip compression for all relevant file types.

Initial Tags
htaccess, apache

Initial Language
Apache