Amazon CloudFront is a web service famous for its speed in the distribution of static and dynamic .html, .css, .js, and image files. CloudFront delivers content with the help of edge locations – a global network of data centers. When users request content from Cloudfront there are almost no delays and the performance is impressive. For example,
To deliver content to users, Cloudfront carries out the following steps:
a) CloudFront sends the request for image files to the Amazon S3 bucket or for HTML files to the HTTP server.
b) If the files exist in the Amazon S3 bucket and the HTTP server, then they are returned to the edge location.
c) CloudFront obtains the files and forwards them to the user.
d) These files are then being cached in the edge location by the CloudFront.