Frederic Nault
Frederic Nault

Reputation: 996

How to invalidate with custom cache policy

Context

I have a distribution where I added the host to the cache policy

These 2 domains point to the same distribution:

these 2 hosts have their respective cache entry, In this setup, I have a custom origin response lambda on edge that will return different content base on the host.

The question:

I'm use to invalidate based on the path ex: /pageA

how should I format my invalidation if I want to only invalidate pageA for site1?

Upvotes: 0

Views: 715

Answers (1)

Lucasz
Lucasz

Reputation: 1228

It is currently not possible to invalidate by domain. Cloudfront invalidation is by path only.

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html

Upvotes: 1

Related Questions