image-resizer-service icon indicating copy to clipboard operation
image-resizer-service copied to clipboard

Cloudfront -> Api Gateway Setup

Open gkodikara opened this issue 2 years ago • 1 comments

Hi,

You mention in your README that you advise setting up CDN in front of the API gateway endpoint to improve performance, cost, etc.

Could you advise how you would do this? I've tried pointing to API Gateway and although it works fundamentally, d=xxx querystring details aren't being respected.

gkodikara avatar Jun 05 '22 06:06 gkodikara

On CloudFront, check that the Cache and Origin request policies associated with the behavior to handle images are properly passing the query string parameters to the origin. If not, create new policies with the params needed in the allow list.

climvalencia avatar Jun 08 '22 02:06 climvalencia