Install

Works with Drupal: 8.x

Using Composer to manage Drupal site dependencies

Alternative installation files

Download cdn-8.x-3.0-beta1.tar.gztar.gz 29.23 KB
MD5: 9524306acc7b61c4242e6dad8798b2d5
SHA-1: 6d48cd4f622154e83913a3e87d4f5de94862e1c8
SHA-256: 8914ed13eef52f2021f047a0c0b198bca61fc9bbdd53073e324ce16982a84ef5
Download cdn-8.x-3.0-beta1.zipzip 44.24 KB
MD5: ca1baf6b1da8f0008665afde6c8536ab
SHA-1: fb1e36a24c67528c86b3a57ac40cf22c78ee73cb
SHA-256: 037864761f2eed6e25079d8771b0b74296c9901a6cf2f683582635f71233dc2d

Release notes

We've arrived at the first beta! 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!)

In the first and second alpha releases, using the module required applying two core patches. During alpha1, the patches were being worked on. At the time of release of alpha2, they were both RTBC. And since then, they've both been committed. So, core no longer blocks the CDN module! :)

This first beta is essentially equivalent with the second alpha release, plus the Far Future expiration feature is now ported (#2708787: Port Far Future expiration to 8.x-3.x), all remaining integration tests have been ported, the "testing mode" has been removed and the necessary clean-up has happened.


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)
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
Created by: Wim Leers
Created on: 15 Sep 2016 at 12:11 UTC
Last updated: 26 Sep 2016 at 14:13 UTC
Bug fixes
New features

Other releases