Amazon CloudFront - Collapsed request answered with Cache-Control: no-store

0

Scenario:

  • There has been no previous requests on an object.
  • CloudFront behavior is default (CacheOptimized).
  • Several requests enough to make request collapsing reached to one Edge Location
  • Origin server responded with Cache-Control: no-store

How does Amazon CloudFront react?

I think it will send all other requests to origin, but wanted to confirm.

Julian
asked 2 years ago105 views
1 Answer
0
Accepted Answer

CloudFront will collapse the request for traffic spike scenario regardless of no-store and/or no-cache directive. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RequestAndResponseBehaviorCustomOrigin.html#request-custom-traffic-spikes

In the logs you will see something like "NonS3CollapsedHit" for something that's normally a MISS/uncacheable.

EXPERT
EJ
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions