[Bug 660105] [NEW] when deflate is enabled, please also compress CSS and JS by default?

James Troup james.troup at canonical.com
Wed Oct 13 19:22:41 BST 2010


Public bug reported:

Binary package hint: apache2

I was surprised to find that the deflate module automatically
compresses HTML, XML and text when enabled.  But since it does, why
not go one step further and auto-compress all CSS and Javascript?
It's pretty much a de facto standard recommendation these days
(e.g. YSlow, webpagetest.org etc.) and I can't imagine it's any more
risky in terms of browser compatability than the existing config (or
any more of a surprise to the admin).

=== modified file 'apache2/mods-available/deflate.conf'
--- apache2/mods-available/deflate.conf 2010-03-30 08:56:31 +0000
+++ apache2/mods-available/deflate.conf 2010-10-13 18:17:39 +0000
@@ -1,3 +1,3 @@
 <IfModule mod_deflate.c>
-          AddOutputFilterByType DEFLATE text/html text/plain text/xml
+          AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
 </IfModule>

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
when deflate is enabled, please also compress CSS and JS by default?
https://bugs.launchpad.net/bugs/660105
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.



More information about the Ubuntu-server-bugs mailing list