Content Delivery Networks (CDNs) are well known to speed up the performance of a website, but they create the obvious security risks if someone were to change the code that resides on the CDN.
What are the security risks of a CDN?
Is there content I shouldn't serve on a CDN (e.g. javascript, raw unwrapped json results)?
If I serve javascript from a CDN, are there technical issues I could run into? (e.g. using an iFrame vs script/src and 3rd party cookies?)
Are there special concerns regarding HTTPS/SSL connections?
What information can a CDN obtain about my site (e.g. via referrer headers)?