Fix bug where CDN HTTP headers were not being set correctly