serverless-image-handler | dynamically handle images on the fly , utilizing SharpJS | AWS library
kandi X-RAY | serverless-image-handler Summary
kandi X-RAY | serverless-image-handler Summary
The AWS CloudFormation template deploys an Amazon CloudFront distribution, Amazon API Gateway REST API, and an AWS Lambda function. Amazon CloudFront provides a caching layer to reduce the cost of image processing and the latency of subsequent image delivery. The Amazon API Gateway provides endpoint resources and triggers the AWS Lambda function. The AWS Lambda function retrieves the image from the customer's Amazon Simple Storage Service (Amazon S3) bucket and uses Sharp to return a modified version of the image to the API Gateway. Additionally, the solution generates a CloudFront domain name that provides cached access to the image handler API. Note: From v5.0, all AWS CloudFormation template resources are created be AWS CDK and AWS Solutions Constructs. Since the AWS CloudFormation template resources have the same logical ID comparing to v4.x, it makes the solution upgradable mostly from v4.x to v5.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of serverless-image-handler
serverless-image-handler Key Features
serverless-image-handler Examples and Code Snippets
Community Discussions
Trending Discussions on serverless-image-handler
QUESTION
I deployed a Lambda function that resizes images to Amazon CloudFront with using this template. https://aws.amazon.com/solutions/serverless-image-handler/
Everything works fine, except i can't cache images in browser. Everytime image requested it gets from Lambda Function's Cloud Front Distribution.
How can browser cache images served by Cloud Front in React App ?
...ANSWER
Answered 2020-Feb-21 at 12:25I added Cache-Control max-age meta information to Lambda Function response. And this solved my problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install serverless-image-handler
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page