Reputation: 996
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
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