AEM "caching JSP components"
Hi
Following is setup of our aem environment
AEM Author -> AEM Publisher -> Dispatcher ->CDN -> userbrowser
user requests URL : https://company.com/content/siteone/page1.html
Issue:
JSP components have calls to "sling.getService()" to get data from backend sources.
Author always displaying data changes.
But dispatcher never displaying the backend data source changes unless republishing of aem pages happen again.
Question: Why does this happen? what are my options?
Do I need to say no-cache at service annotation level to make sure always service gets called and latest data retrieved , displayed on front end?
Do I need to do anything else at JSP component level ?
I apologize ,if this is a basic question but my knowledge on dispatcher , cdn is limited.
Thanks for any help. (I assume above issue would even happen on sightly components as well)