only redirect to cloudfront when specified