### BEGIN EXT:scriptmerger ### # Removal of ETag (saves some bytes; the last modified header is still there) FileETag MTime Size FileETag none # Client caching of JS/CSS files (because they are merged with an applied hash!) # Note: Unsetting of the last modified header causes a permant 200 Ok status ExpiresActive on ExpiresDefault "access plus 1 year" Header append Cache-Control "public" # deliver the uncompressed file if gzip encoding isn't accepted AddEncoding x-gzip .gz RewriteCond %{HTTP:accept-encoding} !.*(x-)?gzip.* [NC,OR] RewriteCond %{HTTP:accept-encoding} .*(x-)?gzip;q=0.* [NC] RewriteRule ^typo3temp/scriptmerger/compressed/(.+)\.gz\.(js|css) typo3temp/scriptmerger/uncompressed/$1.$2 [L,NC] ### END EXT:scriptmerger ###