How to use Fastly CDN with B2 How to use Fastly CDN with B2

How to use Fastly CDN with B2

Udara Gunawardena Udara Gunawardena

The Fastly Content Delivery Network allows you to cache your data using multiple servers across the world, dramatically reducing the amount of latency involved with accessing it. In this article, we will be going over the steps involved with setting up Fastly to run operations with your B2 data.


Configuring Fastly to point at your B2 bucket(s) using the S3 Compatible API:


Step 1:

If you already have a domain name configured, type in the domain name.  If not you can configure your own using the following.




Step 2:

While creating service type "" in


           a. Address field


           b. Transport Layer Security (TLS) -> Certificate hostname field



Your Fastly CDN should now be set up. You can test now by navigating to your domain through a web browser.




The S3 Compatible API for Backblaze B2 Cloud Storage allows 1000’s of integrations to work with B2 natively. If you’re new to the S3 Compatible API, please see our Getting Started Guide. If you have any trouble using Fastly CDN with B2, please let us know by emailing us at