#aem #ApacheSling #SDI
Apache sling dynamic include | dynamically include page components in AEM
AEM sites contain a lot of static pages that can be cached
A small dynamic component makes the page not cacheable in the dispatcher
We want to cache almost the whole page in dispatcher and the selected component should be included dynamically on the page load
The SDI enables the page to be cached with some placeholder for dynamic data– include that will be replaced with real content while accessing the page
Types of Includes:
Javascript Include
Server Side Include(SSI)
Edge Site Include(ESI)
Cloudflare ESI worker - @um-repo/youttubedata/blob/master/edgesiteincludehandler.txt