From 6b03645dfe91c7d0a6c3759a0e15daf44951abb8 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 7 Mar 2018 08:07:59 -0500 Subject: [PATCH] [apache2] Add public asset caching --- view/.htaccess | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/view/.htaccess b/view/.htaccess index 04cd546856..6871f09274 100644 --- a/view/.htaccess +++ b/view/.htaccess @@ -1,5 +1,5 @@ - + #Apache 2.4 Require all denied @@ -8,3 +8,18 @@ Deny from all + + + ExpiresActive On + ExpiresByType image/gif "access plus 1 year" + ExpiresByType image/jpeg "access plus 1 year" + ExpiresByType image/png "access plus 1 year" + ExpiresByType application/javascript "access plus 1 month" + ExpiresByType text/javascript "access plus 1 month" + ExpiresByType text/css "access plus 1 month" + + + + Header set Cache-Control "public" + + \ No newline at end of file