I want to take advantage of mod_deflate (which my host says is enabled). However, I'm unexperienced in .htaccess syntax. I've looked around and came up for this code for my htaccess files. Would someone mind passing judgement on it? Does it seem correct or adequate?
I use htm, html, js, css, swf, jpg, gif, png, ico file types on my site. I'm trying to compress the non-image file types.
Thanks.
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpg|ico|png|swf)$ no-gzip dont-vary
# Dealing with buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# Make sure proxies deliver correct content
Header append Vary User-Agent env=!dont-vary
</IfModule>