Header merge Cache-Control private,max-age=86400,must-revalidate RewriteCond "%{HTTP:Accept-encoding}" "gzip" RewriteCond "%{REQUEST_FILENAME}\.gz" -s RewriteRule "^(.*)\.(rom|vhd)" "$1\.$2\.gz" [QSA] # Serve correct content types, and prevent mod_deflate double gzip. RewriteRule "\.(rom|vhd)\.gz$" "-" [T=application/octet-stream,E=no-gzip:1] # Serve correct encoding type. Header append Content-Encoding gzip Header append Vary Accept-Encoding