fixed error with CDNs not using HTTP