Add CDN in front of R2 private bucket

I use R2 to store some files than I then read from the application backend. Those files are large (several MBs) and are private. They cannot be public.

The problem is that R2 is too slow - it has a high latency (400ms) and bandwidth is only 300mbps.

For that reason I would like to put a CDN in front of it.

Is it possible to cache the files in a CDN while keeping them private (not publicly accessible)? Basically a CDN with authentication in front of R2. Is that possible with Cloudflare?

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