add code for CDNs