How to ignore servlet requests with query parameters from caching in dispatcher and Akamai
I have a resource type (test/test-code-reader) sling servlet and I call the servlet like the below URL:
http://localhost:4502/content/dam/test-code-reader?id=36503786-4aea-4fe6-99a1-536bd7488ad5
My resource type node is residing in /content/dam/test-code-reader and hence calling that URL and then appending the query parameter to the URL.
Use case: Here I am passing a parameter id which is basically the UUID of an asset. I use this UUID to get some metadata property value of an asset to redirect to the URL in the metadata.
Results: In my local everything is working fine as expected. But when it comes to CDN level, Akamai ignores all query parameters.
Expectation: I don't want this requests from my servlet to be cached as each time I will be calling using a different/dynamic UUID. How can I set dispatcher and Akamai to ignore this query parameter, so that the requests from my servlet with this query parameter never gets cached.
I can see the below configurations for cache in our dispatcher. From what I understand it says to cache all pages.

How can I set my Akamai and dispatcher config to work in such a way that this request with a query parameter id is never cached? I read in documentation to use ignoreUrlParams in this dispatcher configuration. If so, can someone help me with the rule to add both in dispatcher and Akamai level?
@lukasz-m @arunpatidar @raja-karuppsamy @kautuk_sahni @nupur_jain
