Updating your Media & Documents CDN URL

By default, your Media and Documents in Agility are served over a globally distributed CDN using either cdn.agilitycms.com (for customers with their source media in US) or cdn-ca.agilitycms.com (for customers with their source media in Canada).

Due to SEO implications, Agility recommends that each customer have their own unique domain alias for the the CDN.

You may either provide a custom domain name to use (i.e. cdn.customer-domain.com) or Agility may provide one using the *.azureedge.net domain name. Agility also recommends that if you provide a custom domain, that you also provide (or purchase) a valid SSL certificate so that CDN resources may be loaded over HTTPS.

The first step to getting started is to contact support@agilitycms.com and inform them of your intent to utilize a custom CDN URL.

Once your CDN profile is setup by our support team, you will then need to update your CDN URL within your website application. Agility recommends adding a replacement filter to your website code that will search and replace all instances of the default CDN URL with your custom CDN URL. This means that even if editors within the CMS accidentally use the default CDN URL, your website application will be smart enough to replace these instances on the fly as the HTML is outputted by the server.

Below, is an example of a Replacement Filter Module that may be installed in an MVC application: