Reliability and Business Continuity

Amazon CloudFront caches product pages whose content varies by the product query parameter, but marketing requests also include unique tracking query parameters that do not affect content. Which cache policy change BEST increases cache reuse without mixing product pages?

Show the answer

Correct answerB. Include only the product query parameter in the cache key

AWhy not this: Removing the product parameter from the cache key can cause different products to share a cached response.

BWhy this is right: The product parameter distinguishes content, while irrelevant tracking parameters no longer fragment cached responses.

CWhy not this: Unique tracking values create unnecessary cache entries and reduce reuse of identical content.

DWhy not this: Tracking values fragment the cache while omitting the product parameter fails to distinguish different product pages.

Including only the product parameter preserves distinct product pages while allowing requests with different tracking values to share cached content. Excluding every query parameter would incorrectly use the same cache key for different products.