Loading...
 
Skip to main content

History: Content delivery network

Source of version: 20 (current)

Copy to clipboard
            !! Content Delivery Network
A content delivery network or content distribution network  (CDN) is a system of computers  containing copies of data, placed at various points in a network so as to maximize bandwidth for access to the data from clients throughout the network. A client accesses a copy of the data near to the client, as opposed to all clients accessing the same central server, so as to avoid bottleneck near that server. Content types include web objects, downloadable objects (media files, software, documents), applications, real time media streams, and other components of internet delivery (DNS, routes, and database queries).
http://en.wikipedia.org/wiki/Content_delivery_network

In the performance admin panel:
{img fileId="833"}


[http://developer.yahoo.com/blogs/ydn/posts/2007/04/high_performanc_1/|High Performance Web Sites: YSlow Rule 2 – Use a Content Delivery Network]
https://developer.yahoo.com/performance/rules.html#cdn

New in ((Tiki5)) in the ((Performance)) admin panel, you can pick a Content Delivery Network for static images and ((jQuery)) code.
{REMARKSBOX(type="warning" title="JQuery CDN and Vue.js on Tiki22")}Vue.js will not load when "Use CDN for JavaScript" is set to jquery or Google. You have to keep the default (use none). This may be true also for prior and newer versions.{REMARKSBOX}

Without any server configuration, you can from the admin panel, pick Google as the CDN for your jQuery files.

You can also use ((Amazon CloudFront)).

With a little server configuration, you can also use your own server as a CDN.


!!! How to setup your server
* Make your server have two domains (ex.: tiki.org and cdn.tiki.org)
** This can be done using "parked domains" (not add-on) on shared hosting
* Enter your CDN (ex: cdn.tiki.org)

If you are already on a sub-domain, it could be doc.tiki.org and cdn.doc.tiki.org

This will improve your ((dev:YSLOW)) scores if you tell your YSlow that cdn.doc.tiki.org is in the official list of CDNs.

!!! CDN for icons (i.e. webfonts) require CORS headers
CORS headers must be enabled for CDN to work properly - check .htaccess (Apache) or web_config (IIS).
* [https://sourceforge.net/p/tikiwiki/code/60630|New for 16.1]
* As of 2016-12-13, there is no option for NGINX.

!!! Amazon CloudFront
The interface for CloudFront
{img fileId="834"}

!!! CoralCDN
^ Note: [http://haacked.com/archive/2007/08/13/speed-up-your-pages-and-improve-your-yslow-score-with.aspx|CoralCDN is more designed for larger files. You won't necessarily get faster performance.] This being said, it's great to use as a test. ^

Coral is a free peer-to-peer content distribution network, comprised of a world-wide network of web proxies and nameservers. http://www.coralcdn.org/

To use, put as CDN:
tiki.org.nyud.net

where "tiki.org" is indeed replaced with your real domain.

Then, some of the static content like images and css/js files will be delivered by the coral network. 


!!! Other CDN providers
http://en.wikipedia.org/wiki/Content_delivery_network#Free_CDNs
http://www.microsoft.com/windowsazure/cdn/
http://www.cachefly.com/website.html

-=alias=-
* (alias(CDN))
* (alias(content distribution network))