From dddf5a3441ccc5e4eb355fe12e80bed82471b8fe Mon Sep 17 00:00:00 2001 From: Tim Gerundt Date: Tue, 26 Apr 2011 01:11:57 +0200 Subject: [PATCH] Web: Add compression for HTML, CSS and JavaScript files --- htdocs/.htaccess | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/htdocs/.htaccess b/htdocs/.htaccess index 761a0f759..b1c326f78 100644 --- a/htdocs/.htaccess +++ b/htdocs/.htaccess @@ -1,2 +1,21 @@ +#Compression... + + AddOutputFilterByType DEFLATE text/plain text/html text/css application/javascript application/x-javascript + + # Netscape 4.x has some problems... + BrowserMatch ^Mozilla/4 gzip-only-text/html + + # Netscape 4.06-4.08 have some more problems + BrowserMatch ^Mozilla/4\.0[678] no-gzip + + # MSIE masquerades as Netscape, but it is fine + # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html + + # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 + # the above regex won't work. You can use the following + # workaround to get the desired effect: + BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html + + #Redirect "devinfo.html" to the new place... Redirect permanent /devinfo.html http://cppcheck.sourceforge.net/devinfo/ \ No newline at end of file