Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Adding Cache control header for JSON


Level 2


We have a requirement where we want to cache  form html (simple form on web page) but not the associated JSON with it. We would like to do it by adding "no-cache, no-store, must-revalidate" response header so that Dispatcher, LB, CDN, client browser and all other external Gateway treat them same way and stop caching them at any level.

While we can do this at AEM code level, question is - is there any way to add such header at dispatcher configuration level or any other already available configuration at OSGI which might be readymade to use for similar response header set-up purpose for a specific types of URL?

We believe there is none, but just wanted to check if anyone has any view on that.


1 Reply


Employee Advisor


if you need such a solution on AEM: No, that feature is not (yet) there. But I am sure that the ACS AEM Commons people would be very happy about such a contribution 🙂




Level 2

Thanks. Is it possible to modify response header at dispatcher level ? If yes, can you pls give an example?