I've setup a cloudfront distribution that contains two S3 origins. I want to setup a cache behavior policy such that the query parameter determines which bucket the resource is fetched from. So far I've tried setting the path pattern to include the query parameter but haven't had luck getting it to work. Below, I've attached a picture of my cache behavior settings:
When I create a signed url like the following, cdn.example.com/image?image-type=webp, the image is loaded from the second origin instead of the first. Does anyone know how to configure the cache behavior so this works?