cagataygurturk/image-resizer-service

Headers aren't passed to cloudfront

Opened this issue · 4 comments

Hello,
I installed your app using serverless repo on AWS, it works lovely thanks for it!
I would like to use cloudfront cache capability but unfortunately it seems that your app does not forward headers.
As you can see on these examples :
Cache-Control is passed : https://tridea-cdn.s3.eu-west-3.amazonaws.com/favicon.ico
Cache-Control isn't passed : https://5xh7ydv0n6.execute-api.eu-west-3.amazonaws.com/production/favicon.ico

Could you please update your code to handle it?
Or if the error comes from my side could you help please :)

@cagataygurturk Any plane to do it?

@VivienGiraud Hello. I have the same problem. Could you please tell me - how you resolved this?

@modgahead We just throw it, manually resize to every size required and put it to our CDN...

Hi also looking for this feature. Cache-control would be a welcomed feature to help combat the round-trips to the function if this could be cached completely on the client side.