I have been searching for an answer for quite some time without luck. Apologies if this has been answered already. I have a client with a WordPress site that relies on a number of common JS libraries and CSS.
I want to change them to use the Cloudflare CDN rather than the copies hosted in our server. I was wondering if there is away to configure this in Cloudflare (using injection) or if I have to manually change the address within WordPress to point to the CDN.
The client has a “Pro” subscription for Cloudflare.
This option is faster since you are doing it at the edge, but for things the first is easier to implement, especially of the server is close to one of the remote origins (same data center) which won’t impact things a lot expect for bandwidth usage.
Yeah nginx sub filter is easier for end users to implement - shouldn’t make much difference if you have css/js cached with long TTL at Cloudflare edge too.