This article is for IT & Networking Specialists using the Global Delivery Network.
Content Delivery Networks (CDN) offer many performance and availability benefits for your website and your end users. CDN technologies are compatible with Smartling's Global Delivery Network (GDN), but there are a few things to keep in mind when using these tools in combination with the GDN.
Using a CDN on Your Source Site
When using a CDN on your origin site, the first decision you must make is whether to set up your GDN site with your CDN server or with your origin server as its source. If you would like to bypass the CDN when the GDN requests source content, you can add the IP or domain of the webserver hosting your site as an alternate endpoint.
If you choose to have the GDN set up with your CDN as its source, you should whitelist the GDN server IP addresses. All users visiting your localized site will appear to be coming from the GDN IP addresses. To ensure that the GDN servers do not get blocklisted and that there is no down time, GDN IP addresses should be whitelisted. For more information, see Whitelisting Global Delivery Network Servers.
Additionally, CDNs may charge fees based on request volume. If you choose to set up your localized site to use your CDN server, you may have an increased number of requests through your CDN.
In order to ingest content and begin translation, the source content will have to be published on your source site. When using a CDN on your origin site, this often means publishing content long after it was created, finalized, and ready. In many cases this leads to untranslated content on your localized site, and a delay in the translation process. Consider configuring your GDN site to use an alternate endpoint if you would like to ingest content from your source server (from an IP address or origin domain).
Loading Resources From a CDN Domain
Using a CDN on Your Localized Site
Using a CDN on your localized site can lead to a decreased number of Smartling GDN requests. It is also a great way to to keep translated content on your site. When new content is published on your origin site, the translated pages will stay cached by your CDN until the cache is cleared. This will allow you to complete translations of new content and only clear the CDN cache once the new content is completely translated.
Additionally, some CDNs may be configured to remove query string parameters from requests. In order to troubleshoot issues that may arise, we may use Smartling Editmodes, which rely on query string parameters. Requests with Smartling "editmode" parameters should not return cached responses and always be preserved on the CDN's requests to the GDN.
In cases where you are using a CDN in front of both your localized sites and origin site, requests may pass through the CDN twice. This may cause CDN errors or duplicate headers to be added in some cases, which can be removed by the GDN using custom configuration rules.
The CDN cache will also need to be managed. If there is a new image added to your origin site, the cache will need to be cleared on the localized site for the image to appear. If there are translations published, fixes released, or changes to the Smartling configuration, the CDN cache will need to be cleared. It is also important not to cache any dynamically generated content or user information.