Knowledgebase
How do I setup my website to be delivered via CDN? Print this Article
If your CMS does not support CDN integration or you are running a custom website, you will need to manually point your content to CDN. It's quite easy, essentially you'll need to adapt your source code to serve static content from selected CDN Hostname (Host).
Assuming you have the following basic CDN setup;
Origin: origin-static.mywebsite.com Origin Pull (Customer Server)
Host: static.mywebsite.com
Caching Policy: Honour Caching Headers set max-edge
CDN CNAME URL: yourwebsite.something.cdnprovider.net
In order to have objects called from the CDN, after CNAME you'll need to replace the origin path inside your tags with the new "Host" or CDN CNAME URL.
If you use the "Host" make sure you have already CNAMED the "Host" to the CDN CNAME URL by adding a new DNS record into your DNS settings. If the "Host" has not been CNAMED content will not be delivered from the CDN.
Here's an example of CDN integration:
replace
<img src="mywebsite.com/path/to/image.jpg" />
with
<img src="cdn.mywebsite.com/path/to/image.jpg" />
or
<img src="something.cdnprovider.net/path/to/image.jpg" />
The same example can be followed with other types of static cacheable content such as CSS, JS, SWF and any other you wish to delegate to CDN.
Was this answer helpful?
Also Read
If your website takes too long to load, you'll lose visitors, influence, and sales! There are...
There have been many exciting developments in the Content Delivery Network (CDN) industry that...
Depending on your business objective and technical needs you might benefit from some of the...
The traceroute order distinguishes each identifies IP bundles go up against the route from your...
How to set up a basic CDN configuration In order to set up a basic CDN configuration, you need...