Developer forum

Forum » CMS - Standard features »  How to Properly Set Up CDN (Cloudflare) Integration in Dynamicweb 10?

How to Properly Set Up CDN (Cloudflare) Integration in Dynamicweb 10?

Ferri Halfhide
Reply

Hi Team,

I’m currently setting up a CDN for one of our clients to improve performance, primarily by caching static assets like images. The client has already configured a Cloudflare account and correctly updated the nameservers for their domain.

Now, I’m looking into the next step, specifically the CDN settings in Dynamicweb 10 (System > Web & Http > CDN). However, it’s not entirely clear what I should enter in the Host and Host (GetImage.ashx) fields.

Let's say our domain is domain.com 

Could you confirm:

  1. What exact value should we enter in those fields?

    (how do i know what i should enter)

  2. Once this is filled in and enabled, will Dynamicweb automatically begin rewriting image/script references and benefit from Cloudflare caching out-of-the-box,

    or are there additional adjustments needed in templates or file URLs (e.g. GetImage.ashx)? 

Because i tried to fill these fields in, but after, the website content got broken so i think I misconfigured something. 
Any clarification or checklist would be greatly appreciated to ensure everything is configured correctly from both the DW and Cloudflare sides.


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Ferry

Just below the field there is an example.

When you create a Cloudflare you can do 2 things - you either define a specific cdn host for only your static assets - e.g. cdn.mydomain.com and then what you add in the Host field is https://cdn.mydomain.com - then all trafic to your www.mydomain.com goes directly to Dynamicweb cloud as always, but static ressources are served by your CDN host that is handled by cloudflare. This is the recommended approach.

Another option is to route all traffic to you main domain through cloudflare - e.g. www.mydomain.com => cloudflare => Dynamicweb cloud. In this case you do not have to setup anything in the backend of Dynamicweb. But you have to define different TTL for routes to dynamic content like pages and others for static content.

 

 

You must be logged in to post in the forum