AEM persisted query is not getting cached in dispatcher
I created a graphql endpoint for my content fragment and it is working fine in author/publisher/dispatcher. Now I am trying to setup cache rule for the AEM persisted query. I followed below doc and setup the dispatcher config. But the cache is not happening at dispatcher level. Note this is AMS (AEM 6.5.22)
Add the variable to the Dispatcher file global.vars:
/0152 { /type "allow" /method '(GET|POST|OPTIONS)' /url "/graphql/execute.json*" }
src/conf.dispatcher.d/cache/dexa_publish_cache.any
/0000 {
/glob "*"
/type "allow"
}
/0003 {
/glob "/graphql/execute*.json"
/type "allow"
}
## Don't cache csrf login tokens
/0001 {
/glob "/libs/granite/csrf/token.json"
/type "deny"
}
grapth endpint =
I can see the json response in dispatcher but it is not getting cached. Below the log message. Is there any config that I should add to cache this persisted query
[Fri Mar 28 05:03:28 2025] [D] [pid 2263756:tid 140498874312448] Found farm publishfarm for dexa-dev.adobe.net
[Fri Mar 28 05:03:28 2025] [D] [pid 2263756:tid 140498874312448] checking [/]
[Fri Mar 28 05:03:28 2025] [D] [pid 2263756:tid 140498874312448] request URL has no extension: /
[Fri Mar 28 05:03:28 2025] [D] [pid 2263756:tid 140498874312448] cache-action for [/]: NONE
[Fri Mar 28 05:03:28 2025] [T] [pid 2263756:tid 140498874312448] Decomposing URL :
[Fri Mar 28 05:03:28 2025] [T] [pid 2263756:tid 140498874312448] uri : /
[Fri Mar 28 05:03:28 2025] [T] [pid 2263756:tid 140498874312448] suffix : No suffix
[Fri Mar 28 05:03:28 2025] [T] [pid 2263756:tid 140498874312448] extension : No extension
[Fri Mar 28 05:03:28 2025] [T] [pid 2263756:tid 140498874312448] selector : No selectors
[Fri Mar 28 05:03:28 2025] [T] [pid 2263756:tid 140498874312448] Decomposing Complete
[Fri Mar 28 05:03:28 2025] [T] [pid 2263756:tid 140498874312448] Filter rule entry /0001 blocked 'GET / HTTP/1.1'
[Fri Mar 28 05:03:28 2025] [D] [pid 2263756:tid 140498874312448] Filter rejects: GET / HTTP/1.1
[Fri Mar 28 05:03:28 2025] [I] [pid 2263756:tid 140498874312448] "GET /" - blocked [publishfarm/-] 0ms