Separate CloudFront cache behaviors per request method?

Viewed 11

Can I have separate cache behaviors per path + request method? Ex: get /users, post /users?

I want to include a LambdaEdge in the 'post /users" behavior, which will add headers for the Cognito user pool authorizer in Api Gateway. For the 'get /user' I don't need the Lambda Edge.

I guess it's not possible, so I will have to add the EdgeLambda to the whole '/users' pattern.

0 Answers
Related