From d6947d4a9741054809ff859f669cda770c49d85e Mon Sep 17 00:00:00 2001 From: Bruno Lima Date: Wed, 18 Mar 2015 10:14:56 -0300 Subject: [PATCH] Added by the browser cache using .htaccess Added by the browser cache for files (js|css|jpg|png|gif|svg) using .htaccess Using this type of cache server to the requests will be lower, thus, the application will become faster. The cache is configured for 2 days. --- src/mibew/.htaccess | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/mibew/.htaccess b/src/mibew/.htaccess index 8a26f44f..e668c86d 100644 --- a/src/mibew/.htaccess +++ b/src/mibew/.htaccess @@ -51,3 +51,16 @@ Options +FollowSymLinks Deny from all + +# Turn on Expires +ExpiresActive On +ExpiresDefault "access plus 2 days" + +# Speed up caching +FileETag MTime Size + +# Set up 2 days caching and specific cache-control for files + + ExpiresDefault A172800 + Header append Cache-Control "proxy-revalidate" +