added cdn support for cloudfront.