Minit CDN
CDN support for WordPress plugin Minit
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/lq2-apostrophe/minit-cdn/archive/refs/heads/master.zipA WordPress plugin as CDN support for Minit by Kaspars Dambis.
Author: LQ2' (Website | GitHub)
Installation
- Install Minit and Minit CDN.
- Activate Minit and Minit CDN.
CDN settings
Use the hook minit-cdn-settings in your theme's functions.php file. For example:
add_filter( 'minit-cdn-settings', 'my_cdn_settings' );
function my_cdn_settings() {
$cdn_settings = array(
'http://cdn.example.com', // CDN URL (without trailing slashes)
true, // Use CDN over HTTPS?
true // Apply CDN for URLs of Minit files too?
);
return $cdn_settings;
}
Note: All array items must be set (not optional).
Known bugs
Minit itself will combine all remaining CSS/JS files if it can't combine them on its last try. So if this plugin is configured to apply CDN for URLs of Minit files, Minit will think of these files as external files and not combine them.
License
This plugin is released under GPL.
Version history
1.0.0
First release
Releases
1 release.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.