Stale Content Served via Firewall (Imperva) Layer Despite CDN and dispatcher Cache Purge
Scenario: AEM Cloud
Our setup includes:
AEM Publish endpoint behind Dispatcher and CDN (Fastly)
A firewall layer (Imperva) in front of the CDN for public domain access (e.g., yourdomain.com)
Issue:
When content updates are made and both the CDN and Dispatcher caches are purged, the changes reflect immediately when accessing the page through the publish endpoint (behind Fastly + Dispatcher).
However, when accessing the same content via the public domain (yourdomain.com, routed through Imperva → CDN → Dispatcher → Publish), the old/stale content continues to appear until the TTL expires.
This suggests that stale content is being served on the request path that includes Imperva, despite cache purge operations.
Additional Context:
We have connected with the Imperva team regarding this behavior. They have confirmed that they are not caching any content on their end. According to them:
They are only routing traffic from imperva to the Fastly CDN
Imperva is being used solely for security and governance purposes, and not involved in any response-level caching.
Expected Behavior:
After purging cache, the content should reflect updated changes consistently across both:
The direct publish endpoint
The public domain (yourdomain.com)
Request:
We would appreciate guidance on:
Whether any additional configuration or headers are needed to ensure consistent behavior when requests pass through the Imperva layer.
If any known behavior exists in AEM/Dispatcher/Fastly setups that would cause this discrepancy when routing includes a third-party WAF.
Thank you for your support.