Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

CDN Fetcher

Security covered Under active development 1 sites

This module downloads external JavaScript and CSS assets declared in your theme and module libraries into your Drupal site's libraries folder. It then rewrites your library definitions to use these local copies, helping to improve privacy and GDPR compliance by avoiding remote CDN requests. The module automatically checks for updates on install, when modules/themes are enabled, and during cron runs.

CDN Fetcher scans *.libraries.yml of installed modules, themes, the install profile, and core. External JS and CSS (https://, http://, protocol-relative //, or type: external with an allowed remote URL) are listed on the status report. Library definitions are rewritten to local paths only when a copy already exists: a Composer package under a Drupal libraries folder (/libraries, site libraries, or the install profile), or a mirror under libraries/cdn_fetcher/. Missing files stay on the CDN URL.

A file becomes local in one of two ways: install it with Composer under /libraries, or click Download locally on the status report. The module never downloads on install, when modules or themes are enabled, on cache rebuild, or during page builds. It never writes composer.json or runs Composer. Composer copies under /libraries are preferred and never overwritten.

drush cdn_fetcher:revalidate (drush cfr) lists missing assets and probes existing fetcher mirrors. It marks New version available when remote bytes changed; the local file is not replaced until a button click or a Composer update. Downloads that fail a declared Subresource Integrity hash are rejected.

Uninstalling a providing extension removes unused mirrors. Uninstalling CDN Fetcher deletes only libraries/cdn_fetcher/ and leaves other /libraries packages in place.

Ask your assistant about CDN Fetcher

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Aug 2026
Latest release
3 weeks ago
Releases (12 mo)
7 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-alpha7 Pre-release 11 PHP >=8.3 Oct 28, 2026
1.0.0-alpha6 Pre-release 11 PHP >=8.3 Oct 2, 2026
1.0.0-alpha5 Pre-release 11 PHP >=8.3 Sep 25, 2026
1.0.0-alpha4 Pre-release 11 PHP >=8.3 Sep 11, 2026
1.0.0-alpha3 Pre-release 11 Aug 26, 2026
1.0.0-alpha2 Pre-release 11 Aug 26, 2026
1.0.0-alpha1 Pre-release 11 Aug 25, 2026