Deliver private BackBlaze B2 files through Cloudflare?

I have a BackBlaze storage bucket and have successfully used Cloudflare CDN to reduce the use of my download limit for public files (as per this article), but I wondered if there is a way to do the same thing with private files? Obviously the files can only be downloaded by API request rather than public URL, but is there a secure way to cache the files with Cloudflare but still maintain privacy of the files?

Put Access in front and do the API call via a Worker?

1 Like

Hi Matteo, thanks for your reply. I’m not sure what you mean?

Use Workers to fetch the files from B2 and put them in cache, and use Access to avoid those not allowed to see/download the files.

I don’t really understand these concepts of Workers and Access…are they the names of libraries/technologies?

They are names of Cloudflare products.

Ah great, thanks I will investigate