Next: Invalidating Files, Previous: Removing Content so CloudFront Won't Distribute It, Up: Adding Removing Replacing Content [Index]
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:
If you add a CNAME (alias) to your distribution, you must also do 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: Invalidating Files, Previous: Removing Content so CloudFront Won't Distribute It, Up: Adding Removing Replacing Content [Index]