Allow compression of javascript, css, html and xml by apache.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 21 Jan 2011 19:28:00 +0000 (20:28 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 21 Jan 2011 19:28:00 +0000 (20:28 +0100)
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 <florent.bruneau@polytechnique.org>
htdocs/.htaccess.in

index 5e2ae43..281f39f 100644 (file)
@@ -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