| Current Path : /home/jeromecohp/www/aesecure/premium/setup/snippets/ |
| Current File : /home/jeromecohp/www/aesecure/premium/setup/snippets/11-aesecure.htaccess |
# Tell to the browser that .gz files should be first unzip then processed as html/css/js depending on the first extension
<IfModule mod_headers.c>
<FilesMatch "\.html\.gz$">
ForceType text/html
Header set Content-Encoding: gzip
</FilesMatch>
<FilesMatch "\.js\.gz$">
ForceType text/javascript
Header set Content-Encoding: gzip
</FilesMatch>
<FilesMatch "\.css\.gz$">
ForceType text/css
Header set Content-Encoding: gzip
</FilesMatch>
</IfModule>
# When accessing to f.i. /assets/script.js, the server will check if a file /assets/scripts.js.gz exists and if so, sent this file instead.
# A .gz file is a compressed file
#<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteCond %{HTTP:Accept-encoding} gzip
#RewriteCond %{REQUEST_FILENAME}\.gz -s
#RewriteRule ^(.*)$ %{REQUEST_URI}.gz [R=307,L]
#</IfModule>