Configure an External CDN or Third-Party Proxy
You can use your own content delivery network (CDN) with Salesforce B2C Commerce's embedded CDN to deliver static and dynamic content to your customers. Deploy your CDN (or a reverse proxy) in front of B2C Commerce to improve performance and security, or to provide extra functionality using your CDN.
Customer CDN settings are instance-specific. They arenβt transferred to other instances with the Data Replication process.
Layer your CDN in front of the B2C Commerce platform. Specify the URL prefix used to create the URLs pointing to your CDN.
To mitigate the eCDN security response, we recommend that you add your stacked proxy to the firewall allowlist. To access the allowlist, go to
, and click Settings for the desired zone. In the Firewall tab, add or edit the allowlist and specify any third-party proxy IP addresses.After defining the Client IP Header Name and site aliases, complete the configuration by configuring your DNS and your external third-party proxy.
To configure a third-party proxy on top of the B2C Commerce platform:
- On the third-party proxy:
- Enter the B2C Commerce instance as the origin server, for example,
your-domain.cdn.cloudflare.net
- Pass the host header (for example, www.customer.com) back to the
eCDN.Note: Donβt send the entire B2C Commerce instance (www.customer.com.cdn.cloudflare.net) back to the eCDN.
- Configure the client IP header name as specified.
- Ensure that responses are only cached in the CDN if the origin sends a cache header.
- Enter the B2C Commerce instance as the origin server, for example,
- On the DNS, point the DNS entry for your site to your
CDN CNAME
.