Before you begin
You need:- An up-and-running Upsun project
- A Fastly CDN subscription
1. Avoid double-caching
To avoid stale content that can’t be cleared, avoid using Fastly with HTTP caching. For routes where Fastly is used, disable HTTP caching using the following configuration:.upsun/config.yaml
2. Set up your Fastly CDN
To properly configure your Fastly CDN, see the Fastly official documentation on how to get started. Then set up a custom domain. To get the DNS challenge to succeed, have your CDN point to your project’s target URL.3. Handle apex domains
To start routing client traffic through Fastly, createCNAME records for your domain names
through your DNS provider.
CNAME records can’t point to apex domains.
As a workaround, Fastly offers Anycast options.