From Amazon cloud front
Amazon CloudFront is a web service that speeds up distribution of your static and dynamic web content, such as .html, .css, .php, and image files, to your users. CloudFront delivers your content through a worldwide network of data centers called edge locations.
Per mine undserstanding, CloudFront must be caching the content with URL as key. URL can serve both static and dynamic content. Say i have 100 weburl's , out of which 30 serves the static content and 70 serves dynamic content(user specific data). I have one question each on static and dynamic content
Dynamic content :- Say user_A access his data through url_A from US. That data has been cached . He updates the first name. Now same user will access the data from same location in US or from another location in UK. We he see data prior to updation. If yes how will edge location come to know data needs to fetched from server not from cache ? Does edge location continue to display the data from cache for configurable amount of time and if time is passed then fetch it from server ?
Does cloudfront allows to configure specific URL's that needs to fetched from server instead of cache always ?
Static content :- There are chances that even static data may change will with each release. How cloud front will know that cached static content is stale and needs to be fetched from server ?