Skip to content

How do I ensure that data from the EC2 load balancer API is not cached by CloudFront?

0

I use it to route traffic to different services: 1> example.com/ - > S3 2> example.com/api/ - > EC2 load balancer。

How do I ensure that data from the EC2 load balancer API is not cached by CloudFront? Is it by setting the behavior -> Cache policy -> CachingDisabled? Or does CloudFront guarantee this by default?

asked a year ago158 views
1 Answer
1

Using the CachingDisabled managed cache policy (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html#managed-cache-policy-caching-disabled), as you are doing, is the right way to accomplish exactly that.

EXPERT
answered a year ago
EXPERT
reviewed a year ago
EXPERT
reviewed a year 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.