This option is only needed to be enabled if you already have a CDN set on your websites such as KeyCDN (which is compatible with the WordPress plugin “CDN Enabler – WordPress CDN Plugin“) and the URL to the cached CSS/JS files from Asset CleanUp Pro has not been already updated.

The CDN can be for instance from your hosting company. All the CSS/JS can load from the CDN URL, but for some reason, the ones from /wp-content/cache/asset-cleanup/ are still loading the web site’s URL (original location). If you’re using Cloudflare’s CDN, which acts as a reverse proxy, then you do not have to enable this option. Everything is done on Cloudflare’s servers (no URL ti update on your end).


Let’s suppose you’re using KeyCDN (this is just an example, it can be other CDN service as well) and the CSS/JS are already loaded from //yourzone-1a2b.kxcdn.com/. However, there are cached CSS/JS files from Asset CleanUp that do not have the URL updated (like it is for other CSS/JS that didn’t have to be cached).

The URL could be like //yourwebsitedomain.com/wp-content/cache/asset-cleanup/css/style.css – Instead, it should be like //yourzone-1a2b.kxcdn.com/wp-content/cache/asset-cleanup/css/style.css. So, your website uses KeyCDN and it’s been working great so far and noticed that the integration was skipped for files pointing to /wp-content/cache/asset-cleanup/, then you need to enable “Enable CDN URL rewrite?” and set the following to the values (if it applies to both CSS and & JS files which is usually the case): //yourzone-1a2b.kxcdn.com (just like in the print screen below).

This option ONLY replaces the site’s URL with the one you set in the input field in order to make sure the following location is not skipped: /wp-content/cache/asset-cleanup/.

What you need to do first (before using this option if it would still be necessary), is make sure the CDN is set up and there are various plugins that could help you with this, depending on the service. For instance, if you use KeyCDN, you can use the following tutorial to set it up: https://www.keycdn.com/support/wordpress-cdn-integration-with-cdn-enabler. If you’re using BunnyCDN, then you can install the following plugin that is specifically tailored for this CDN service: https://wordpress.org/plugins/bunnycdn/, etc.

Was this post helpful?