According to the terms of service clause 2.8 (https://www.cloudflare.com/en-gb/terms/#:~:text=2.8
) and many comments across this community, using Cloudflare as a CDN “for serving video or a disproportionate percentage of pictures, audio files, or other non-HTML content is prohibited, unless purchased separately as part of a Paid Service or expressly allowed under our Supplemental Terms for a specific Service.”
These terms at time of writing are “Effective November 10, 2022”
However, according to Backblaze, in an article on their site titled Delivering Backblaze B2 Content Through Cloudflare CDN (https://help.backblaze.com/hc/en-us/articles/360010017893
) dated October 19, 2022 20:09, the author clearly states, “Cloudflare can be used as a CDN for a B2 bucket without workers if the bucket is public, not private.”
The article goes on:
Many customers have expressed interest in hosting static data for their website (ranging from minified Javascript applications to multi-hour 8K video) because of the security, reliability, and affordability of Backblaze B2 storage. One solution to ensuring performance and availability is to route requests through a CDN (Content Delivery Network) such as Backblaze’s Bandwidth Alliance partner Cloudflare, taking advantage of Cloudflare’s performance and the free data transfer between Backblaze B2 and Cloudflare.
The message in the Backblaze article is very clear: we can use Cloudflare as a CDN in front of B2 for “static data”.
My interpretation is that as long as the assets being served from B2 though the CDN are primarily in the service of rendering a website and associated APIs then Cloudflare will be fine with it. E.g., running your WordPress website with static content hosted on B2 is fine, whereas running a huge Pixelfed or Peertube instance will probably get their attention (that is, “disproportionate” use of images and video).
This seems a lot like a fair-use policy. But it is unclear. What does disproportionate mean? Disproportionate to what? HTML? Nearly all websites serve a disproportionate amount of non-HTML content (in terms of data over the wire) as compared to the HTML (See https://httparchive.org/reports/page-weight
). Can anyone shed any further further light?
With independent instances of the Fediverse enjoying rapid growth and perhaps serving a lot of static media, this is a question I am sure many others would like clarity on. Mastodon supports storage of media in S3 compatible buckets, and, as I understand it, many instance administrators use Cloudflare to cache those assets. In fact, Cloudflare is mentioned in the Mastodon documentation (https://docs.joinmastodon.org/admin/config/#trusted_proxy_ip
).
Many thanks,
Charles