From 583f494bb7f3ba8c1cc3c6b7dec339a64da62b91 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 13 Oct 2013 13:46:35 +0200 Subject: Propose un .htaccess par défaut MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Une bonne amélioration des performances est possible en utilisant le cache HTTP. Ce patch propose un .htaccess par défaut (pour Apache). L'accès "Satisfy Any" pour favicon.ico est pour le cas où le répertoire FreshRSS serait protégé par un mot de passe, ce qui pose problèmes pour certaines utilisations de favicon (y compris dans Firefox). Le "Cache-Control public" est surtout utile pour la mise en cache dans le cas de HTTPS. --- public/.htaccess | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 public/.htaccess diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 000000000..10fb21f70 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,40 @@ + + DirectoryIndex index.php index.html + + +FileETag None +AddDefaultCharset UTF-8 + + + AddCharset UTF-8 .css + AddCharset UTF-8 .js + AddCharset UTF-8 .svg + AddType application/font-woff .woff + + + + ExpiresActive on + ExpiresByType application/font-woff access plus 1 year + ExpiresByType application/javascript access plus 1 week + ExpiresByType image/gif access plus 1 month + ExpiresByType image/png access plus 1 month + ExpiresByType image/svg+xml access plus 1 month + ExpiresByType image/x-icon access plus 1 year + ExpiresByType text/css access plus 1 week + ExpiresByType text/javascript access plus 1 week + + ExpiresActive Off + + + + + + Header merge Cache-Control "public" + + + + + Order Deny,Allow + Allow from all + Satisfy Any + -- cgit v1.2.3 From 50df70740ec731132f8d6ae6fc35b9464c8a067d Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 13 Oct 2013 13:51:23 +0200 Subject: Correction erreur syntaxe --- public/.htaccess | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index 10fb21f70..0bad536a4 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -14,14 +14,14 @@ AddDefaultCharset UTF-8 ExpiresActive on - ExpiresByType application/font-woff access plus 1 year - ExpiresByType application/javascript access plus 1 week - ExpiresByType image/gif access plus 1 month - ExpiresByType image/png access plus 1 month - ExpiresByType image/svg+xml access plus 1 month - ExpiresByType image/x-icon access plus 1 year - ExpiresByType text/css access plus 1 week - ExpiresByType text/javascript access plus 1 week + ExpiresByType application/font-woff "access plus 1 year" + ExpiresByType application/javascript "access plus 1 week" + ExpiresByType image/gif "access plus 1 month" + ExpiresByType image/png "access plus 1 month" + ExpiresByType image/svg+xml "access plus 1 month" + ExpiresByType image/x-icon "access plus 1 year" + ExpiresByType text/css "access plus 1 week" + ExpiresByType text/javascript "access plus 1 week" ExpiresActive Off -- cgit v1.2.3 From 9940e3e0e22bfffc3efed3458ebc4545bccbc875 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 13 Oct 2013 13:54:19 +0200 Subject: Réduction cache pour police à 1 mois MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/.htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/.htaccess b/public/.htaccess index 0bad536a4..624b29720 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -14,7 +14,7 @@ AddDefaultCharset UTF-8 ExpiresActive on - ExpiresByType application/font-woff "access plus 1 year" + ExpiresByType application/font-woff "access plus 1 month" ExpiresByType application/javascript "access plus 1 week" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" -- cgit v1.2.3