Next: , Previous: , Up: Adding Removing Replacing Content   [Index]


Customizing the URL Format for Files in CloudFront

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/LinkFormat.html

After you set up your origin with the objects (content) that you want CloudFront to serve to your viewers, you must use the correct URLs to reference those objects in your website or application code so that CloudFront can serve it.

The domain name that you use in the URLs for objects on your web pages or in your web application can be either of the following:

When you specify URLs for directories in your CloudFront distribution, choose either to always use a trailing slash or to never use a trailing slash. Both formats work to link to CloudFront objects, but being consistent can help prevent issues when you want to invalidate a directory later. CloudFront stores URLs exactly as they are defined, including trailing slashes. So if your format is inconsistent, you’ll need to invalidate directory URLs with and without the slash, to ensure that CloudFront removes the directory.


Next: , Previous: , Up: Adding Removing Replacing Content   [Index]