This conversation has been locked due to inactivity. Please create a new post.
SOLVED
How can I best export and use Content Fragments (CF) and Experience Fragments (XF) for my SPA app in a headless setup? Are there differences in exposing and consuming them? Share your best practices, please!
I'm looking to understand the best practices for exporting and consuming Content Fragments (CF) and Experience Fragments (XF) in a headless fashion for use by SPA (Single Page Application) apps.
What are the key differences, if any, in exposing CFs and XFs in a headless manner?
Can you share any insights or best practices for keeping CFs and XFs up-to-date and synchronized with external applications?
Both CF and XF's can be set with appropriate TTL's either at the dispatcher level or on the CDN level. This will help in keeping them up to date. Content like FAQ's which often doesn't get change and can be used across multiple channels can be a CF with a higher TTL and max age as per the requirements so as soon as the expiration time is reached new content can be fetched from AEM the origin server and served.
Both CF and XF's can be set with appropriate TTL's either at the dispatcher level or on the CDN level. This will help in keeping them up to date. Content like FAQ's which often doesn't get change and can be used across multiple channels can be a CF with a higher TTL and max age as per the requirements so as soon as the expiration time is reached new content can be fetched from AEM the origin server and served.