oarevalo/ColdBricks/master/includes/floatbox/compressed/.htaccess - Htaccess File

oarevalo/ColdBricks/master/includes/floatbox/compressed/.htaccess

<IfModule mod_rewrite.c>
<IfModule mod_headers.c>

Options -MultiViews

<FilesMatch ".js.gz$">
  ForceType text/javascript
  Header set Content-Encoding: gzip
</FilesMatch>

<FilesMatch ".css.gz$">
  ForceType text/css
  Header set Content-Encoding: gzip
</FilesMatch>

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{HTTP_USER_AGENT} !Safari
RewriteCond %{HTTP_USER_AGENT} !Konqueror
RewriteRule ^(.+)$ $1.gz [L]

</IfModule>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_USER_AGENT, REQUEST_FILENAME

Comments

Apache