amazon-web-servicesamazon-cloudfrontcdncontent-delivery-network

Can I upload image directly from client browser to CloudFront?


Generally, When i want to cache the image to the CloudFront,

I sent a file to the following method.

[ClientBrowser->Origin(EC2)->C/F->Edge location->Caching Complete->Delete Origin Image]

But, It is impossible? about upload files in the following ways?

[ClientBrowser->C/F->Edge location->Caching Complete]

Solution

  • CloudFront supports uploads but that's for speeding up file uploads, not for caching them. CloudFront is only going to cache files that exist in the origin server, so you can't upload a file to CloudFront that you want it to cache. You have to put the file on the origin server.