From ef7fe966a2e9898543da16b7bdb8c498e172a7da Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 19 Dec 2010 16:47:57 -0800 Subject: [PATCH] turn on caching & gzip for apache --- .htaccess | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.htaccess b/.htaccess index cb7c4de..da9df98 100644 --- a/.htaccess +++ b/.htaccess @@ -1 +1,18 @@ AddType application/rss+xml rss +AddOutputFilterByType DEFLATE application/rss+xml text/css application/javascript text/html + +# Turn on Expires and set default expires to 3 days +ExpiresActive On +ExpiresDefault A259200 + +# Set up caching on media files for 1 month + + ExpiresDefault A2419200 + Header append Cache-Control "public" + + +# Set up 2 week caching on commonly updated files + + ExpiresDefault A1209600 + Header append Cache-Control "private, must-revalidate" +