Name your traffic on CloudFront all the time . CloudFront will retrieve content from your server as needed (i.e. if CloudFront already has a fairly fresh cached copy of the page or other resource, it will serve this cached copy). If your server is down due to a reboot or something went wrong and CloudFront has a cached copy of your page, CloudFront will serve the cached copy no matter how fresh it is.
If you need to make sure that a certain resource is in the CloudFront cache before your server goes down, simply click on this page using a web browser. This will force CloudFront to serve the page from the cache or pull it from your source server; in any case, the net result is that the page is cached in CloudFront.
source share