Sep 13, 2018

SEO tips: Using Content Delivery Network (CDN)

Search engine optimisation (SEO) and Content Delivery Network (CDN)

Content such as images and documents are served from a different domain when you use the CDN. This can have an effect on SEO for this content.

Solution: Try to use an alias so the content from CDN looks like from the same domain.

For example the Azure CDN allows you to specify a custom domain name and use it to access resources through the CDN. You can also set up a custom subdomain name using a CNAME record in your DNS. Using this approach can provide an additional layer of abstraction and control.

If you use a CNAME, you cannot use SSL because the CDN uses its own single SSL certificate, and this certificate will not match your custom domain/subdomain names.

Other SEO measures while using CDN:

  • Include a Rel canonical header in each page or resource.
  • Use a CNAME subdomain record and access the resources using this name.
  • Consider the impact of the fact that the IP address of the CDN may be a country or region that differs from that of the application itself.