Desire: Set "Object Caching" to "Use Origin Cache Headers" on Cloudfront
Via the AWS API, my understanding is that this is achieved by setting min_ttl
to 0. When min_ttl
is set to zero, the required default_ttl
and max_ttl
fields are no longer required. If min_ttl
is set to a value greater than 0 and max_ttl
and/or default_ttl
are not set, the API returns an error.
To the best of my knowledge, this isn't documented in the SDK docs. From AWS general docs, see "Important" field. http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesMinTTL