AEM/AEMaaCS - Ajax calls and page cache - retrieve latest content without performance issues
All,
I have a question , If I have a page with say 10 components with Ajax calls and has static authored content too . If this gets deployed to end users , while the page gets cached since the js calls occur on load of a page ,
1. Would the page display the latest retrieved content via Ajax calls ? Would it be cached and serve up old content ? I would assume that the Ajax calls made on page load to servlet will serve up latest content and won’t be cached while the page (ending with .html) is cached ? Sling dynamic include, an alternative? (question is, is it really needed) ?
2. If I have a single on load call that triggers a servlet , although page ending with .html is cached , would it return cached content or via Ajax backend call it gives us latest ?
3. any performance issues- due to on load retrieval , how does one work towards resolving this ? -