- Newest
- Most votes
- Most comments
Understand you are loading 100+ images on a single page. Instead of loading actual images, you may want to generate thumbnails and load them instead. Since these are not actual images, you can make them public.
The tutorial Tutorial: Using an Amazon S3 trigger to create thumbnail images may help.
Another option is to front S3 bucket with CloudFront for private viewing. Instead of a S3 signed URL for each image, you can generate signed cookies for the entire site. So this will be one instead of 100+ API calls.
Refer to Serving Private Content Through Amazon CloudFront Using Signed Cookies and Serve private content with signed URLs and signed cookies for more information.
Since it supports multiple origins, you can also front both your website and S3 bucket with CloudFront. Besides the performance improvement from using a CDN, this configuration makes it easier to set CloudFront cookie.
Agree with Mike. Front the bucket with cloudfront with s3 as the origin
Relevant content
asked 2 years ago
asked 2 years ago
asked a year ago
- AWS OFFICIALUpdated 2 years ago
