Configure an External CDN or Third-Party Proxy

You can use your content delivery network (CDN) with Salesforce B2C Commerce to deliver static and dynamic content to your customers. Deploy your CDN (or a reserve proxy) in front of B2C Commerce to improve performance and security, or to provide extra functionality.

Customer CDN settings are instance-specific. They are not 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.

Important: If you use the CDN that is included in B2C Commerce, don't change the following settings.
  1. Select site > Merchant Tools > Site URLs > Customer CDN Settings.
  2. On the Customer CDN Settings page in the Dynamic Content section, enter the Client IP Header Name.

    This value is used by the CDN to transfer the client's IP to enable client IP-based services, such as geo-location. B2C Commerce uses this setting to retrieve the client IP address from a request header instead of the network connection source address. If the request header isn't provided, the connection source address is used. If a CDN terminates client requests, B2C Commerce continues to use the client IP header name functionality. See the CDN documentation.

    B2C Commerce prohibits use of the following header names, regardless of capitalization:

    • cf-connecting-ip
    • true-client-ip
    • x-forwarded-for
    Note: These header names are prohibited, even if you replace the dashes with underscores.

    To configure a third-party proxy on top of the B2C Commerce Platform:

    • On the B2C Commerce instance: select site > Merchant Tools > Site URLs > Aliases and configure the site name.
    • On the DNS: point the DNS entry for your site to your CDN CNAME.
    • On the third-party proxy:
      1. Enter the B2C Commerce instance as the origin server, for example,
      2. Pass the host header to the origin.
      3. Configure the client IP header name as specified.
      4. Ensure that responses are only cached in the CDN if the origin sends a cache header.
  3. In Business Manager, select site > Merchant Tools > SEO > Aliases and configure the site name.
  4. Click Save (at the top right).

After defining the Client IP Header Name and site aliases, complete the configuration by configuring the DNS and your external third-party proxy.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.