Typically if mod_deflate is enabled, most of these MIME types will be configured to compress anyway. The exception is SVG, so that is included in the patch.

Note that SVGs should probably be stored as SVGZs so that they are not having to compressed on every request.

Files: 
CommentFileSizeAuthor
deflate.patch909 bytesjbrown
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 87,991 pass(es). View

Comments

jbrown’s picture

Status: Active » Needs review
Wim Leers’s picture

Category: Bug report » Task
Issue tags: +front-end performance, +CSS, +JavaScript, +Fast By Default

Quoting @jbrown from #2092245-26: SVGZ isn't served with correct encoding:

There is another issue to zip the SVG files on the fly, but this will cause increased CPU load: #2448387: Ensure that anything not already compressed is compressed on the fly

I don't think it's really that big of a problem, for the following reasons (and I'm sure there are even more reasons):

  1. web server CPUs are mostly idle nowadays — I/O is the bottleneck, not CPU, in most cases by far
  2. it's up to web servers to cache these GZIPped static files — that's a super simple optimization for them to make
  3. the proper caching headers must be set too, in which case these files will be cached on the client side, reducing the number of times this occurs

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

markdorison’s picture

Version: 8.1.x-dev » 8.3.x-dev

Patch applies cleanly and no obvious regressions occur. What is the best way for us to confirm that this is working?

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.