---
schema_version: "1"
id: e602c43830771af8ad91f6be4013b2da0f66affb88e65ade1fc71f344dff2cba
title: Content Delivery Networks (CDNs) and Salesforce
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/community_builder_cdn_overview.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.community_builder_cdn_overview.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 38b9abf55fffbd3a5a9b8153bb8928916db26715ac17358279df8e165f482628
description: Optimize page load times and site performance with our content delivery network (CDN). Salesforce partners with a CDN provider to efficiently deliver publicly cacheable content to users on your Experience Cloud sites.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Content Delivery Networks (CDNs) and Salesforce

Optimize page load times and site performance with our content delivery network (CDN). Salesforce partners with a CDN provider to efficiently deliver publicly cacheable content to users on your Experience Cloud sites.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Applies to: Salesforce Sites and <a href="https://help.salesforce.com/s/articleView?id=experience.exp_cloud_basics_glossary.htm&amp;language=en_US" target="_blank">LWR, Aura, and Visualforce sites</a></td></tr></tbody></table>

## What’s a CDN?

A content delivery network is a geographically distributed network of servers that store cached versions of web assets. To optimize page load times and site performance, a CDN efficiently delivers publicly cacheable content to users. CDNs are the industry standard for web applications because they provide faster and more secure content delivery.

All the assets used to develop your Experience Cloud sites or Salesforce Sites are stored on your Salesforce instance. Your instance is stored on one Salesforce server. The farther away your users are from that server, the longer it takes to get data to their computer and your site’s pages.

The CDN minimizes delays in loading web page content by reducing the distance between the server and the user. CDNs also increase the number of requests that the server can respond to because the CDN offloads a large portion of hits to your site. By reducing the distance between the server and the user and increasing content availability and redundancy, CDNs improve website load times and site performance.

Learn more about CDNs and see one in action in this short video.

## CDN Options for Sites

For sites, you can get the benefits of a CDN in three ways.

- Use the default Experience Cloud site domain. When you enable Experience Cloud sites, Salesforce creates a system-managed domain for your site. The host name for that system-managed domain ends in \*.my.site.com and that domain uses the Salesforce CDN.
    
    Government Cloud Plus orgs can opt out of the Salesforce CDN for \*.my.site.com domains. To opt out, from Setup, in the Quick Find box, enter My Domain, and then select **My Domain**. Then in the Routing section, deselect **Use Content Delivery Network (CDN) by default when enhanced domains are enabled for Experience Cloud sites**.
- Set up a custom domain such as https://www.example.com that serves your Experience Cloud site content with the Salesforce CDN. This option isn’t available for registrable domains. If you have Digital Experiences, including those built with [Experience Cloud](https://help.salesforce.com/s/articleView?id=users_license_types_communities.htm&language=en_US), [Commerce](https://help.salesforce.com/s/articleView?id=comm_licenses.htm&language=en_US), and [Industries](https://help.salesforce.com/s/articleView?id=industries_object_access_by_license.htm&language=en_US) licenses, we recommend this option to serve your custom domain. For considerations, prerequisites, and set up instructions, see [Serve Your Experience Cloud Site with the Salesforce Content Delivery Network (CDN)](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_salesforce_cdn.htm&release=264.0.0&type=5 "Optimize page load times and site performance with our content delivery network. Salesforce partners with a content delivery network (CDN) provider to efficiently deliver publicly cacheable content to users on your Experience Cloud sites. We recommend the Salesforce CDN for custom domains that serve Digital Experiences, including Experiences built with Experience Cloud, Commerce, and Industries licenses.").
- Set up a custom domain such as https://www.example.com that serves content from your Experience Cloud site or Salesforce Site with a third-party CDN outside of Salesforce. A non-Salesforce CDN is the only available option to serve a registrable domain or Salesforce Site via a CDN. Commerce LWR sites can’t use a CDN outside of Salesforce. See [Use a Third-Party Service or CDN to Serve Your Custom Domain](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_external_host.htm&release=264.0.0&type=5 "Use a domain that’s hosted by a third-party service to serve your Experience Cloud sites or Salesforce Sites. These third-party services include third-party hosts, web application firewalls (WAFs), and non-Salesforce content delivery networks (CDNs).").

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

Note The Salesforce CDN is the content delivery network recommended for serving sites and stores. Even without a custom domain, you can get the benefits of a CDN. Go to [Enable the Lightning CDN to Load Applications Faster](https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/perf_cdn.htm) enable the Lightning CDN for your Salesforce org.

## Who Can Use the Salesforce CDN for a Custom Domain

The Salesforce CDN is available for custom domains that serve Experience Cloud sites. If you use Marketing Cloud Account Engagement (Pardot) in a Professional Edition org, you must use the Salesforce CDN for your domains.

To get the benefits of a CDN for a domain that serves content from a Salesforce Site, use a CDN outside of Salesforce. Also, Salesforce is unable to serve a registrable domain, such as example.com, using our CDN. We only serve subdomains, such as www.example.com or parts.example.com. To serve your site content on a registrable domain served from a CDN, host it on a CDN outside of Salesforce.

If you’re creating a Commerce LWR store, you can use the system-managed \*.my.site.com URL or a custom domain to enable the Salesforce CDN.

## How a CDN Works

By reducing the distance between the server and the user and increasing content availability and redundancy, CDNs improve website load times and [site performance](https://help.salesforce.com/s/articleView?id=exp_cloud_plan_performance_scale.htm&language=en_US).

This diagram illustrates this effect for the Salesforce CDN for Experience Cloud sites. The principle also applies to external CDNs and the Lightning CDN for Salesforce orgs.

![Graphic that shows a Content Delivery Network](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/extend_click/images/cdn_overview_graphic.png)

The Salesforce CDN includes an [image optimization](https://help.salesforce.com/s/articleView?id=networks_files_optimize_images_all_devices.htm&language=en_US) feature that makes your site pages load faster for guest users, whether they’re viewing your site on their phone, tablet, or desktop computer. In addition, the Salesforce CDN comes with configurable availability pages. You can display a custom [Service Not Available page](https://help.salesforce.com/s/articleView?id=community_builder_sna_page.htm&language=en_US) when your site is down or a custom [Too Many Requests page](https://help.salesforce.com/s/articleView?id=community_builder_tmr_page.htm&language=en_US) when your site is in high demand.

#### See Also

- [Custom Domains](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt.htm&release=264.0.0&type=5 "Provide a branded experience for users who access your external-facing Salesforce content by serving your Digital Experiences or Salesforce Sites on a domain that you own, such as https://www.example.com.")
- [Serve Your Experience Cloud Site with the Salesforce Content Delivery Network (CDN)](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_salesforce_cdn.htm&release=264.0.0&type=5 "Optimize page load times and site performance with our content delivery network. Salesforce partners with a content delivery network (CDN) provider to efficiently deliver publicly cacheable content to users on your Experience Cloud sites. We recommend the Salesforce CDN for custom domains that serve Digital Experiences, including Experiences built with Experience Cloud, Commerce, and Industries licenses.")
- [Use a Third-Party Service or CDN to Serve Your Custom Domain](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_external_host.htm&release=264.0.0&type=5 "Use a domain that’s hosted by a third-party service to serve your Experience Cloud sites or Salesforce Sites. These third-party services include third-party hosts, web application firewalls (WAFs), and non-Salesforce content delivery networks (CDNs).")