RewriteEngine On
RewriteBase /cache/assets/
RewriteCond %{HTTP:Accept-Encoding} .*gzip.*
RewriteRule (.*)\.css $1.css.gz
RewriteRule (.*)\.js $1.js.gz
RemoveType application/x-gzip .gz
AddEncoding x-gzip .gz
ExpiresActive on
ExpiresDefault A604800
ExpiresByType text/css "A604800"
ExpiresByType application/x-javascript "A604800"
<IfModule mod_deflate>
RemoveOutputFilter DEFLATE
</IfModule>