Cache servlet response
I had assumed I could cache the response from a servlet in AEM but at the moment this does not seem to be the case. The url for my servlet is: /some/url.param1.param2.json I thought because I am using selectors the dispatcher would be happy to cache it but this is not the case. If I change a node manually in CRX I see this change reflected in the JSON I get back from the servlet showing that the dispatcher is not caching this at all.
Is it possible to cache a servlet? If so could there be some config on the dispatcher I need to do, no other urls currently go via /ajax, we have configured our IHS server to pass these requests to AEM but perhaps I need to make a change on the dispatcher?