ESI not working in AEM as a Cloud Service
Hello Community
We are setting up the environment to enable SDI so that the content won't be cached for dynamic components. The only issue is, the CDN is caching the "nocache.html" files which ultimately caused the issues. If we verify using dispatcher URL, we see the expected changes.
Currently we have configured Sling Dynamic Include OSGI config with ESI and followed the header rules as per this - https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/caching/how-to/disable-caching?lang=en
Setting nocache.html path with
Header unset Cache-ControlHeader unset Surrogate-ControlHeader always set Cache-Control "no-store, max-age=0"Header always set Surrogate-Control "no-store, max-age=0"
and Parent paths with some non zero TTLs along with these -
Header set x-aem-esi "on"Header set x-aem-compress "on"
But CDN is still caching the fragments with nocache selector.
Do we need to configure cdn.yml file for this?