I need to serve out large files (10-50GB) at low volumes from an S3 bucket. I am using CloudFront because I need Lambda@Edge to inspect the requests before they hit the s3 bucket.
From the AWS docs here I understand that I pay for Data Transfer Out to Internet. I also understand the largest object size for the CloudFront Cache is 20GB.
My question is: for files less than 20GB, does not caching these files have any impact on the cost/pricing of CloudFront? Does setting the Cache-control
header to no-cache
mean that the response bypasses CloudFront? I assume there must be some costs associated with the caching/storing the file on the edge servers.
There is a similar question here but the answer doesn't discuss cost/pricing of caching specifically.