This module provides easy Content Delivery Network integration for Drupal sites. It changes file URLs, so that files (CSS, JS, images, fonts, videos …) are downloaded from a CDN instead of your web server.
It does not put your entire website behind a CDN.
Only Origin Pull
CDNs are supported. These are CDNs that only require you to replace the domain name with another domain name. The CDN will then automatically fetch (pull) the files from your server (the origin). Nowadays pretty much every CDN is an Origin Pull CDN.
The CDN module aims to do only one thing and do it well: altering URLs to point to files on CDNs. It supports:
- Any sort of CDN mapping
- Preconnecting: lets browsers connect to the CDN faster (as well as the older and less beneficial DNS prefetching)
- SEO: prevents CDN from serving HTML and REST responses, only allow files
- Forever cacheable files (optimal far future expiration, using
Cache-Control: immutable
) - Auto-balancing files over multiple CDNs
- … and many more details that are taken care of automatically
Project information
- Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Performance
- 4,880 sites report using this module
- Created by Wim Leers on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Drupal 10.2 compatibility, and now tested against 9.5/10.0/10.1/10.2/11.x + max PHP version thanks to GitLab CI!
Development version: 4.x-dev updated 19 Feb 2024 at 08:49 UTC
Minor bugfix release with a minor new feature.
Development version: 7.x-2.x-dev updated 15 Apr 2022 at 13:25 UTC