From 0db96bad5dcc1b677cfd2afc1bd311e631ae67b3 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Tue, 22 Mar 2016 01:56:37 +0100 Subject: [PATCH] Optimize performances --- .htaccess | 7 +++++++ templates/footer.tpl | 1 + templates/head.tpl | 1 - 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 83d9799..29ed68b 100644 --- a/.htaccess +++ b/.htaccess @@ -1,4 +1,6 @@ AddType application/x-web-app-manifest+json .webapp +Addtype font/truetype .ttf + ExpiresActive On ExpiresByType application/javascript "access plus 1 week" @@ -6,11 +8,16 @@ AddType application/x-web-app-manifest+json .webapp ExpiresByType image/png "access plus 1 week" ExpiresByType image/jpeg "access plus 1 week" ExpiresByType image/svg+xml "access plus 1 week" + ExpiresByType font/truetype "access plus 1 week" + FileETag None + RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] Redirect permanent /api.php /video Redirect permanent /extractors.php /extractors + +AddOutputFilterByType DEFLATE text/css text/html application/javascript diff --git a/templates/footer.tpl b/templates/footer.tpl index ae9c9be..41347f5 100644 --- a/templates/footer.tpl +++ b/templates/footer.tpl @@ -17,5 +17,6 @@ · + diff --git a/templates/head.tpl b/templates/head.tpl index 175293c..1383ae2 100644 --- a/templates/head.tpl +++ b/templates/head.tpl @@ -22,7 +22,6 @@ -