Cdn endpoint cache

I have a site where I use wp rocket for the cache, it creates an html file with json inside that I receive as a response from my api.
I can use Cloudflare cdn to store these files, is it possible?

Greetings,

Thank you for asking.

Kindly, may I ask you to follow the instructions how to propperly setup WP Rocket while using Cloudflare as follows on below articles:

Unfortunately, you cannot host files at Cloudflare (yet), despite Cloudflare Images & Stream, until Cloudflare R2 Storage is available:

Until then, I’d suggest you to host your files on some public bucket.

You can try for example with BackBlaze B2 Storage or BunnyCDN or KeyCDN.
If using Backblaze B2 Storage, create account and a bucket, upload it there and connect your custom domain with your B2 bucket, therefore setup a Page Rule for caching at Cloudfalre for that particular resource.

Cloudflare acts as a Pull CDN, like most others, so when a file is requested for the first time, it is loaded in the cache. Subsequent requests will come from the cache until that item expires or is evicted for lack of use until the next request. You’re certainly welcome to use any other service that suits you best.

Helpful information for better understanding of how Cloudflare CND works can be read at the article from below:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.