when deflate is enabled, please also compress CSS and JS by default?

Bug #660105 reported by James Troup on 2010-10-13
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Wishlist
Unassigned

Bug Description

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>

Mathias Gug (mathiaz) on 2010-10-13
Changed in apache2 (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Daniel Richard G. (skunk) wrote :

I think this would need an explicit decision to de-support IE6, as far as compressed JS is concerned. (I can't remember offhand which clients couldn't handle compressed CSS; was it anything newer than Netscape 4?)

    http://www.cforcoding.com/2009/05/supercharging-javascript-part-6.html
    ("Supercharging Javascript, Part 6: The Internet Explorer Problem")

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers