Thursday 30 September 2021

AEM caching the query parameter of service url

 There is no direct way to cache the query parameter in the dispatcher, but we can do it by following way

on dispatcher write a rules as below which will convert your service to path parameter based service from query parameter based service.

and path is automatically get cached so our problem is solved.

myUrl/(P1PossibleValueRegex)/(P2PossibleValueRegex)/(P3PossibleValueRegex) myUrl/?p1=$1&p2=$2&p3=$3 [PT]

I Hope this will help

Your feedback will help others please share your feedback

No comments:

Post a Comment