When you request for an object or HTTP web page:
- CloudFront checks for the object in its local cache.
- If not available, CloudFront checks for the object with the origin server.
- If the object is unavailable with the origin server as well, your web server will return an HTTP status code to CloudFront.
- 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.
- 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".
- You can also specify an image/HTML page having the same formatting as the rest of your website. CloudFront will ...