3 Replies Latest reply on Nov 15, 2017 12:11 AM by Jörg Hoh

    Adding Cache control header for JSON




      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.