I've only recently been reading up on the capabilities of Varnish Cache to help optimize my PHP website's performance. I read about a feature called Edge Side Includes, which seems to give me the option to build widgets of html content that can be cached on a component level. So that a single page of dynamic content can have parts of the page cached, and other parts not cached.
I then started to look into Amazon CloudFront, which seems to offer page level caching abilities as well. But it isn't clear to me if CloudFront offers the equivalent of Edge Side Includes. Can someone clarify for me if that is possible? This would influence the way I architect my PHP website.