I opened the CloudFront Dashboard and clicked on the distribution ID, then clicked on the Origin tab and clicked, selected the default origin and then clicked on Edit. Tried to add "Accept-Encoding" in the 'Header Name' under Custom Origin Headers and set its value as "gzip", but it shows the following error:
com.amazonaws.services.cloudfront.model.InvalidArgumentException: The parameter HeaderValue for Accept-Encoding is not empty. (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidArgument; Request ID: 05685bb6-ca02-11e7-8a62-0b7037d34a58)
What can be done to enable gzip compression through CloudFront?