quantity property
The number of different headers that you want CloudFront to base caching on for this cache behavior. You can configure each cache behavior in a web distribution to do one of the following:
-
Forward all headers to your origin: Specify
1forQuantityand*forName. -
Forward a whitelist of headers you specify: Specify the number of
headers that you want CloudFront to base caching on. Then specify the header
names in
Nameelements. CloudFront caches your objects based on the values in the specified headers. -
Forward only the default headers: Specify
0forQuantityand omitItems. In this configuration, CloudFront doesn't cache based on the values in the request headers.
- S3 bucket: See HTTP Request Headers That CloudFront Removes or Updates
- Custom origin: See HTTP Request Headers and CloudFront Behavior
Implementation
final int quantity;