psegarel/drupal-bootstrap/master/legacy_files/advagg_js/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /sites/default/files/advagg_js
# Send 404's back to index.php
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule ^(.*)$ /index.php?q=sites/default/files/advagg_js/$1 [L]
# Rules to correctly serve gzip compressed js files.
# Requires both mod_rewrite and mod_headers to be enabled.
<IfModule mod_headers.c>
# Serve gzip compressed js files if they exist and client accepts gzip.
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -s
RewriteRule ^(.*).js$ $1.js.gz [QSA]
# Serve correct content types, and prevent mod_deflate double gzip.
RewriteRule .js.gz$ - [T=text/javascript,E=no-gzip:1]
<FilesMatch ".js.gz$">
# Serve correct encoding type.
Header set Content-Encoding gzip
# Force proxies to cache gzipped & non-gzipped js files separately.
Header append Vary Accept-Encoding
</FilesMatch>
</IfModule>
</IfModule>
<FilesMatch "^js_[0-9a-f]{32}_.+.js(.gz)?">
<IfModule mod_expires.c>
# Enable expirations.
ExpiresActive On
# Cache all aggregated js files for 1 year after access (A).
ExpiresDefault A31556926
</IfModule>
<IfModule mod_headers.c>
# Unset unnecessary headers.
Header unset Last-Modified
Header unset Pragma
Header unset Accept-Ranges
# Make these files publicly cacheable.
Header append Cache-Control "public"
</IfModule>
FileETag MTime Size
</FilesMatch>
On Github License
Files