What is the correct/best way to combine Cloudflare and an external CDN (e.g., MaxCDN in my case) for caching static files?
I am attempting to configure both, but am experiencing low cache rates on both services. While some files can be found in both the CDN and Cloudflare caches (and some just in CF), often larger jpegs show:
headers… which sends the user hopping from CF edge to CDN to origin. Not good.
BTW, the domain is https://www.rockbrookcamp.com/
There is this advice about making both services cooperate: How to Use MaxCDN With CloudFlare – MaxCDN
But even with the recommended settings, the issue remains.
I use the wp-rocket WordPress plugin to re-write the urls of static assets, from www.rockbrookcamp.com to static.rockbrookcamp.com. And then a CNAME to pass static.rockbrookcamp.com to the CDN domain.
Here is a screen showing the DNS settings I have in Cloudflare. I am guessing that this issue might be improved or eliminated by adjusting the site’s DNS. In other words, I am not confident the site’s DNS settings are optimal. For example, should the CNAME for the CDN’s subdomain be “DNS only?” And if so, how would this affect the coordination of both services?
Thank you for taking a look. I’ll appreciate some advice.