RewriteEngine on RewriteBase / RewriteCond %{HTTP:Accept-Encoding} (x\-)?gzip,? RewriteRule ^errors\.js$ errors.js.gz