From ecd80a7d5f03ef356bb4ecaa11c6f6d755aa56f6 Mon Sep 17 00:00:00 2001 From: Ben Schwarz Date: Wed, 20 Jul 2011 15:50:22 +1000 Subject: [PATCH] Don't use ETags, Allow clean urls, Set a long time away expires header for woff files. --- public/.htaccess | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index e1ca6f8..6274f7c 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,4 +1,11 @@ -# allow access from all domains for webfonts +# No ETag +FileETag None + + + Header unset ETag + + +# Allow access from all domains for webfonts Header set Access-Control-Allow-Origin "*" @@ -33,14 +40,31 @@ ExpiresActive On ExpiresDefault "access plus 10 days" - + ExpiresDefault "access plus 10 years" +# Chrome frame + + + BrowserMatch MSIE ie + Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie + + + +# Clean(er) URLS + + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME}.html -f + RewriteRule ^(.+)$ $1.html [L,QSA] + + # Mime-types AddType text/cache-manifest .manifest -AddType font/otf .otf +AddType font/opentype .otf AddType application/vnd.bw-fontobject .eot AddType application/x-font-ttf .ttf AddType application/x-woff .woff \ No newline at end of file