From 3a2f43e8d5c85a116845c360902f268fd2798ffa Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Wed, 5 Mar 2014 16:56:45 -0500 Subject: add (untested) php and htaccess --- www/.htaccess | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 www/.htaccess (limited to 'www/.htaccess') diff --git a/www/.htaccess b/www/.htaccess new file mode 100644 index 0000000..b51816a --- /dev/null +++ b/www/.htaccess @@ -0,0 +1,25 @@ + + ExpiresActive on + ExpiresDefault "access plus 1 minutes" + + ExpiresDefault "access plus 1 years" + + Header set X-Content-Duration "0" + + + + + + RewriteEngine On + RewriteCond %{HTTP:Accept-Encoding} gzip + RewriteCond %{REQUEST_FILENAME}\.gz -s + RewriteRule ^(.*)\.json $1\.json\.gz [QSA] + +# Prevent double gzip and give the correct mime-type + RewriteRule \.json\.gz$ - [T=application/json,E=no-gzip:1,E=FORCE_GZIP] + + Header set Content-Encoding gzip env=FORCE_GZIP + + +Header set Cache-Control "public" +Header set X-UA-Compatible "IE=edge,chrome=1" -- cgit v1.2.3-70-g09d2