Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 1.22 KB

AddingObjects.md

File metadata and controls

7 lines (4 loc) · 1.22 KB

Adding Objects that You Want CloudFront to Distribute

When you want CloudFront to start distributing additional objects, you add the objects to one of the origins that you specified for the distribution, and you expose a CloudFront link to the objects. A CloudFront edge location doesn't fetch the new objects from an origin until the edge location receives viewer requests for the objects. For more information, see How CloudFront Delivers Content.

When you add an object that you want CloudFront to distribute, ensure that you add it to one of the Amazon S3 buckets specified in your distribution or, for a custom origin, to a directory in the specified domain. In addition, confirm that the path pattern in the applicable cache behavior sends requests to the correct origin. For example, suppose the path pattern for a cache behavior is *.html. If no other cache behaviors are configured to forward requests to that origin, CloudFront will never distribute .jpg files that you upload to the origin.

CloudFront servers don't determine the MIME type for the objects they serve. When you upload an object to your origin, you should set the Content-Type header field for the object.