How it works...

When you request for an object or HTTP web page:

  1. CloudFront checks for the object in its local cache.
  2. If not available, CloudFront checks for the object with the origin server.
  3. If the object is unavailable with the origin server as well, your web server will return an HTTP status code to CloudFront.
  4. For example, if a user asks for an invalid URL/object, your web server returns a 404 status code to CloudFront, and CloudFront returns the same to the user.
  5. You can display a brief and sparsely formatted default message or a web page stating: Not Found: "The requested URL /myfilename.html was not found on this server".
  6. You can also specify an image/HTML page having the same formatting as the rest of your website. CloudFront will ...

Get AWS Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.