Hello @Shashi_Mulugu , thanks for your reply.
From your message: "you should not explicitly cache anything apart from CDN cache with cache headers" - can you please give a documentation reference or elaborate more on this recommendation?
My understanding from official documentation:
- cache-control header - can be used by browsers (clients) and/or CDN
- Surrogate-Control header - can be used specifically for Fastly CDN (for more granular control)
This is ok and works fine, as expected.
But:
- after CDN a request comes to Apache with Dispatcher module. This module has caching functionality as well (enabled OOTB AEMaaCS).
And this is where we experience troubles, this cache on Dispatcher level is not flushed after FrontEnd pipeline (I see it via requests with a debug header:
curl -v -H "X-Dispatcher-Info: true" {{URL}}
we can use TTL. At the same time it is a bit weird, that a FrontEnd Pipeline is not flushing the cache when it should.