Description
This module provide easy Content Delivery Network integration for Drupal sites. It alters file URLs, so that files are downloaded from a CDN instead of your web server.
It provides two modes: "Origin Pull" and "File Conveyor".
- In Origin Pull mode, only "Origin Pull" CDNs are supported (hence the name). 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). Or alternatively: (sub)domains that point to your main domain, by using so called "CNAME" DNS records.
- In File Conveyor mode, this module integrates with the File Conveyor daemon. This allows for much more advanced setups: files can be processed (e.g. optimize images like smush.it, minify CSS with YUI Compressor, minify JS with YUI compressor or Google Closure Compiler, and it's easy to add your own!), before they are synced and your CDN doesn't have to support Origin Pull, any push method is fine (supported transfer protocols: FTP, Amazon S3, Rackspace CloudFiles). File Conveyor is flexible enough to be used with any CDN, thus it enables you to avoid vendor lock-in.
Note:
It is essential that you understand the key properties of a CDN, most importantly the differences between an Origin Pull CDN and a Push CDN. A good (and compact!) reference is the “Key Properties of a CDN” article.
Version 1 of this module (for Drupal 6) was written as part of the bachelor thesis of Wim Leers at Hasselt University.
AdvAgg
The CDN module aims to do only one thing and do it well: altering URLs to point to files on CDNs. But in some cases, simply altering the URL is not enough, that's where the AdvAgg module comes in.
If you've ever had any issues with CSS or JS files not behaving as desired, check out AdvAgg. The "Advanced CSS/JS Aggregation" module solves all issues that arise from having CSS/JS served from a CDN. Keeping track of changes to CSS/JS files, smart aggregate names, 404 protection, on-demand generation, works with private file system, Google CDN integration, CSS/JS compression, GZIP compression, caching, and smart bundling are some of the things AdvAgg does. It's also faster then core's file aggregation. Also, if using AdvAgg there is the "Parallel CSS - AdvAgg Plugin" module. It can alter the url()'s in CSS files so they reference CDN domains.
Live sites
- economist.com
- a network of more than 1,000 TV stations in the U.S. (source)
- calarts.edu
- driverpacks.net
- vps.net
- wimleers.com
Related & recommended modules
- BundleCache
- Episodes
- Files Proxy
- Imageinfo Cache (only needed for D6)
- WPO (D7-only)
Sponsors
- Port of Far Future expiration functionality to Drupal 7: ONE Agency
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Reported installs: 1857 sites currently report using this module. View usage statistics.
- Last modified: January 23, 2012