The dispatcher will not cache responses to POST requests or to requests which use a query parameter. If you want the dispatcher to cache a parameterized request, use GET and selectors instead of query parameters.
Thanks Justin. I have couple of questions to understand the proposed solution
1) Do you know how can I convert component POST to GET (for the reference blog). I tried renaming to myajaxsample.json.GET.jsp but it breaks component input dialog. Note that this component is making Ajax call to
<%= currentNode.getPath() %>.json
2) Can I force cache to update for cases when data for a particular JSON request is updated?
Can I use Suffix instead of selectors to pass paramerers, if so will it be cached by dispacther
<%= currentNode.getPath() %>.json/param1=A/param2=B
1 person found this helpful
In your example it won't be cached, because it lacks an extension.
<% currentNode.getPath() %>.json/param1=A/param2=B.html would work though.