can cloud front invalidte 4xx or 5xx cache

0

Can cloud front cache a 4xx or 5xx response from my origin? And can cloud front invalidate a 4xx or 5xx cache with the Invalidating Files function? https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html

ivan
asked a month ago75 views
1 Answer
1
Accepted Answer

Hello.

The HTTP 4xx and 5xx statuses in the tables listed in the documentation below are cached.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HTTPStatusCodes.html#HTTPStatusCodes-cached-errors-general

The cache can be deleted using "CreateInvalidation".

You can also set TTL to maintain cache such as HTTP 4xx and 5xx.
https://docs.aws.amazon.com/ja_jp/AmazonCloudFront/latest/DeveloperGuide/HTTPStatusCodes.html

profile picture
EXPERT
answered a month 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