Skip to main content

I'm trying to build a site inside salesforce that is also hosted on the salesforce platform, the problem is about setting up the Salesforce CDN for it, the available resources mention using 3rd party hosting services and such, what tried to do was creating a salesforce site using the experience builder and checking the Enable Content Delivery Network (CDN) for Lightning Component framework. checkbox, I need someone to clarify to me what are the necessary steps to setup Salesforce CDN in my case and how to use it in LWC.

 

your help would be much appreciated, Thank you.

4 respostas
  1. Piyusha Pilania (Implementology) Forum Ambassador
    1 de ago. de 2023, 09:14

    @Daoud Haffar Once you have checked the 'Enable Content Delivery Network (CDN) for Lightning Component framework' checkbox, Salesforce handles the rest behind the scenes. That is, Salesforce will automatically route static resources through its global CDN network. You don't need to set up anything else, Salesforce handles this internally.

     

    For your Lightning Web Components (LWC), all static resources (like images, JavaScript, CSS) that are part of the LWC and uploaded in the Salesforce platform will be served through the CDN automatically.

     

    It might take some time to notice the difference in load times, as the content needs to be cached in the CDN first, which happens as users access your site.

     

    Let me know if this answers your question!

0/9000