Install

Works with Drupal: 8.x

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 33.44 KB
MD5: c2006f4ae2b96f31a5376f33e5c3c343
SHA-1: e73c43f5f94fdf220fae9c72e438fe3588a7e191
SHA-256: 6dc5e0ed7f8364bf8c4765e984a747e4815b1ef414703a41328c7bbed16befa5
Download zip 50.86 KB
MD5: fc66978b78fa397d183d00c5b66c2f93
SHA-1: 2f8ea2d9c9940d56d3464ad67ec2538e6f79efcf
SHA-256: 949a98f786d2fde68df2437ded7c0e3bb30d57e80045ab3aee0ddee55c6b3fdf

Release notes

After almost two months of RC1, here's RC2! Some minor bugs were fixed, and one important change was made: #2827998: Add a new default option to the CDN UI: "all files except CSS+JS", and make this the new default of the CDN module, include upgrade path. The CDN module will no longer serve CSS and JS files from a CDN by default. This should lead to better performance (and at the same time handily avoids a bug in Drupal 7/8's AJAX system — see #2811615: [upstream] [Core bug, fixed since 9.5] AJAX commands that need additional JS to be loaded will fail when JS is loaded from CDN. It includes an automatic upgrade path, with upgrade path test coverage. Only sites using the old default settings will be updated, any more customized settings will be left untouched.

The CDN module is now fully ported to Drupal 8. It is much simpler to use (just look at the UI). It has less overhead (the UI is in a separate module, the altering of file URLs has far simpler logic). It has lower technical complexity (File Conveyor support was dropped, it no longer needs to detect HTTP vs HTTPS: it always uses protocol-relative URLs, less unnecessary configurability, the farfuture functionality no longer tries to generate file and no longer has extremely detailed configurability).

In other words: the CDN module in Drupal 8 is much simpler. And has much better test coverage too. (You can see this in the tarball size too: it's about half of the Drupal 7 version of the module!)


The CDN UI module's configuration UI.

all the fundamentals
  • the ability to use simple CDN mappings, including conditional ones depending on file extensions, auto-balancing, and complex combinations of all of the above
  • DNS prefetching
  • a simple UI to set it up — in fact, much simpler than before!
changed/improved
  1. the CDN module now always uses protocol-relative URLs, which means there's no more need to distinguish between HTTP and HTTPS, which simplifies a lot
  2. the UI is now a separate module (fixes #1784432: Version 3.0: move UI of CDN module into a cdn_ui module)
  3. the UI is optional: for power users there is a sensible configuration structure with strict config schema validation
  4. complete unit test coverage of the heart of the CDN module, thanks to D8's improved architecture
  5. DNS prefetching using headers rather than tags in <head>, which allows me to use a much simpler/cleaner Symfony response subscriber
  6. tours instead of advanced help (fixes #1753174: Dependency for advanced_help module), which very often was ignored
  7. there is nothing to configure for the SEO (duplicate content prevention) feature anymore
  8. nor is there anything to configure for the Forever cacheable files feature anymore (named Far Future expiration in Drupal 7), and it's a lot more robust
removed
  1. File Conveyor support
  2. separate HTTPS mapping (also mentioned above)
  3. all the exceptions (blacklist, whitelist, based on Drupal path, file path…) — all of them are a maintenance/debugging/cacheability nightmare
  4. configurability of SEO feature
  5. configurability of unique file identifiers for the Forever cacheable files feature
  6. testing mode

Contributors (3)

Wim Leers, bradjones1, anavarre

Changelog

Issues: 4 issues resolved.

Changes since 8.x-3.0-rc1:

Task

  • #2826937 by Wim Leers, bradjones1: CDN UI does not validate user-provided domain, entering URL instead of domain results in assertion error
  • #2827638 by Wim Leers, bradjones1, anavarre: "Forever cacheable files" enabled + "CSS aggregation" disabled via settings.local.php = files referenced from CSS files 403'ing => don't alter CSS file URLs in this case
  • #2827998 by Wim Leers: Add a new default option to the CDN UI: "all files except CSS+JS", and make this the new default of the CDN module, include upgrade path
  • #2828150 by Wim Leers: Clean-up + one piece of missing validation
Created by: wim leers
Created on: 18 Nov 2016 at 11:41 UTC
Last updated: 11 Dec 2019 at 18:09 UTC
Bug fixes
Unsupported

Other releases