From 11ceb819a9aa5e65227b12eaa70ffb0fffab5183 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 25 Oct 2014 12:26:15 +0200 Subject: [PATCH] Added image, JS and CSS cache settings to htaccess --- public_html/.htaccess | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/public_html/.htaccess b/public_html/.htaccess index 8ed23b2d..20b08e9d 100644 --- a/public_html/.htaccess +++ b/public_html/.htaccess @@ -21,3 +21,17 @@ RewriteRule ^/?api/(.*) api-dispatch.php?q=$0 [QSA,L] AddType text/plain .tpl + + + ExpiresActive On + ExpiresDefault "access plus 1 seconds" + ExpiresByType text/html "access plus 1 seconds" + ExpiresByType image/x-icon "access plus 1 year" + ExpiresByType image/gif "access plus 1 year" + ExpiresByType image/jpeg "access plus 1 year" + ExpiresByType image/png "access plus 1 year" + ExpiresByType text/css "access plus 1 year" + ExpiresByType text/javascript "access plus 1 year" + ExpiresByType application/javascript "access plus 1 year" + ExpiresByType application/x-javascript "access plus 1 year" +