The /rules property controls which documents are cached according to the document path. Regardless of the /rules property, Dispatcher never caches a document in the following circumstances:
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?
Solved! Go to Solution.
Views
Replies
Total Likes
Did you add the caching rule for this URL in the dispatcher configuration file ?
Please see the following doc - https://docs.adobe.com/docs/en/dispatcher/disp-config.html#par_146_44_0010
The /rules property controls which documents are cached according to the document path. Regardless of the /rules property, Dispatcher never caches a document in the following circumstances:
Each item in the /rules property includes a glob pattern and a type:
If you do not have dynamic pages (beyond those already excluded by the above rules), you can configure Dispatcher to cache everything. The rules section for this looks as follows:
1 2 3 4 | /rules { /0000 { /glob "*" /type "allow" } |
Views
Replies
Total Likes
Did you add the caching rule for this URL in the dispatcher configuration file ?
Please see the following doc - https://docs.adobe.com/docs/en/dispatcher/disp-config.html#par_146_44_0010
The /rules property controls which documents are cached according to the document path. Regardless of the /rules property, Dispatcher never caches a document in the following circumstances:
Each item in the /rules property includes a glob pattern and a type:
If you do not have dynamic pages (beyond those already excluded by the above rules), you can configure Dispatcher to cache everything. The rules section for this looks as follows:
1 2 3 4 | /rules { /0000 { /glob "*" /type "allow" } |
Views
Replies
Total Likes
perfect thanks
Views
Replies
Total Likes