From: Florent Bruneau Date: Fri, 21 Jan 2011 19:28:00 +0000 (+0100) Subject: Allow compression of javascript, css, html and xml by apache. X-Git-Tag: xorg/1.0.2~31 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=806dd8b8c322e0175cdcb483b38818e8b8ae4a02;p=platal.git 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 --- 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