Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Install
Works with Drupal: 8.xUsing Composer to manage Drupal site dependencies
Alternative installation files
Download cdn-8.x-3.0-alpha1.tar.gztar.gz
41.23 KB
MD5: ebfb58226bca540d1364a67c284e38d9
SHA-1: aedccc1c79dc7d58130582b453d2d78cf48b5db8
SHA-256: 60e17af026e1b13cdac7cfde4fc273698afb1ded12f182f458d684feb1465a7d
Download cdn-8.x-3.0-alpha1.zipzip
54.97 KB
MD5: e4de6018fbc736ca5a4be5de70b90557
SHA-1: b70461701a9c79465ad7da4a14b58e7b7959d335
SHA-256: 41c6bf756fb4bc3e95d89ce55af7e20ec2c49e88415f6ba13580d5310006e410
Release notes
In this first alpha release:
- 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
-
- 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
- the UI is now a separate module (fixes #1784432: Version 3.0: move UI of CDN module into a cdn_ui module)
- the UI is optional: for power users there is a sensible configuration structure with strict config schema validation
- complete unit test coverage of the heart of the CDN module, thanks to D8's improved architecture
- DNS prefetching using headers rather than tags in
<head>
, which allows me to use a much simpler/cleaner Symfony response subscriber - tours instead of advanced help (fixes #1753174: Dependency for advanced_help module), which very often was ignored
- removed
-
- File Conveyor support
- separate HTTPS mapping (also mentioned above)
- all the exceptions (blacklist, whitelist, based on Drupal path, file path…) — all of them are a maintenance/debugging/cacheability nightmare
- TODO
-
- the 'Access files on the CDN when in testing mode' permission is not yet operational… but should it even be? Is this something people actually use? Should we keep it or remove it?
- integration tests: #2708777: Write/migrate integration tests
- Far Future expiration support: #2708787: Port Far Future expiration to 8.x-3.x
- SEO/duplicate content prevention: #2708771: Port SEO (duplicate content prevention) to 8.x-3.x
- #2666382: EditorFileReference filter: generate URLs for inline images (core issue) to allow the CDN module to rewrite file URLs in user-generated content
- #1783278: Scheme-relative URL rejected by validation (core issue) to allow the CDN module to work in tandem with file upload widgets, which currently cause errors due to this core bug
Looking forward to your feedback at #2294613: Port CDN to Drupal 8!