Inspect cookies to rewrite URLs to different versions of a site for A/B testing. Send different objects to your users based on the User-Agent header, which contains information about the device that submitted the request. For example, you can send images in different resolutions to users based on their devices.
https://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html

