How to use the CDN.
Compression can provide faster transmission times between the CDN and client browsers that can accept compressed files. Formats that are compressed:
(Portions paraphrased from http://www.asp.net/mvc/overview/performance/bundling-and-minification and https://www.iis.net/configreference/system.webserver/httpcompression)
To access a bundle:
JQuery (currently version 1.10.2)
//cdnuc.azureedge.net/bundles/jquery cdn org
//cdnuc.azureedge.net/bundles/jqueryval cdn org
Moderizr (currently version 2.6.2)
//cdnuc.azureedge.net/bundles/modernizr cdn org
Bootstrap (currently version 3.0.0)
//cdnuc.azureedge.net/bundles/bootstrap cdn org
Custom Bundles (for example pharmacy)
Images (for example pharmacy)
- //cdnuc.azureedge.net/pharm/assets/images/life.jpg cdn org
What is the difference between azureedge (cdn) and azurewebsites (org)?
- //cdnuc.azureedge.net is the actual CDN replicated, compressed and cached around the world
- //cdnuc.azurewebsites.net is the original source used for replication.
CDNs are meant for caching
The CDN pulls from the original source and then caches it for 7 days. It must be manually purged to serve before the 7 day expiration.
The CDN is set to cache every unique URL. So it will will treat //cdnuc.azureedge.net/bundles/pharm/slp/js?1 as different than //cdnuc.azureedge.net/bundles/pharm/slp/js?2