From 806dd8b8c322e0175cdcb483b38818e8b8ae4a02 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Fri, 21 Jan 2011 20:28:00 +0100 Subject: [PATCH] Allow compression of javascript, css, html and xml by apache. Do not compress images: this is is a bit useless and it is not properly supported by all browsers. Note: This commit may require a bit of testing on all supported browsers. Signed-off-by: Florent Bruneau --- htdocs/.htaccess.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/.htaccess.in b/htdocs/.htaccess.in index 5e2ae43..281f39f 100644 --- a/htdocs/.htaccess.in +++ b/htdocs/.htaccess.in @@ -20,3 +20,9 @@ ExpiresByType image/gif "access plus 7 days" ExpiresByType image/jpeg "access plus 7 days" ExpiresByType image/png "access plus 7 days" ExpiresByType text/css "access plus 7 days" + +AddOutputFilterByType DEFLATE application/javascript +AddOutputFilterByType DEFLATE application/x-javascript +AddOutputFilterByType DEFLATE text/css +AddOutputFilterByType DEFLATE text/html +AddOutputFilterByType DEFLATE text/xml -- 2.1.4