From 7864d09faf9185728f519eccbe119605a69a708b Mon Sep 17 00:00:00 2001 From: Anxhelo Lushka Date: Tue, 13 Mar 2018 17:28:14 +0100 Subject: [PATCH] Update .htaccess --- .htaccess | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.htaccess b/.htaccess index 638eb75..d334312 100644 --- a/.htaccess +++ b/.htaccess @@ -35,3 +35,17 @@ RewriteRule ^([^\.]+)$ $1.php [NC,L] ErrorDocument 404 /404.html + +## EXPIRES CACHING ## + +ExpiresActive On +ExpiresByType image/jpeg "access plus 1 year" +ExpiresByType image/gif "access plus 1 year" +ExpiresByType text/css "access plus 1 month" +ExpiresByType application/pdf "access plus 1 month" +ExpiresByType text/x-javascript "access plus 1 month" +ExpiresByType application/x-shockwave-flash "access plus 1 month" +ExpiresByType image/x-icon "access plus 1 year" +ExpiresDefault "access plus 1 days" + +## EXPIRES CACHING ##