AEM Cloud : How to not cache the GraphQL persistent queries
Hi Team,
In my website, I am using GraphQL queries on Content Fragments. When I am creating new CF's and publishing it, I am not able to fetch those CF's on my publisher website using GraphQL queries.
After 1 or 2 days, I am able to read them so my question is, how can I remove caching for GraphQL queries so I would get new fragments data as well?
I checked the dispatcher settings and found that the default rewrite rule is allowing cache for GraphQL like this
# Allow the dispatcher to be able to cache persisted queries - they need an extension for the cache file
RewriteCond %{REQUEST_URI} ^/graphql/execute.json
RewriteRule ^/(.*)$ /$1;.json [PT]
I updated the cache rule as well in dispatcher repo to overwrite the above caching, but it is still not working on publisher
/2003
{
/glob "/graphql/execute.json/*"
/type "deny"
}
What could be the best way to not cache the queries.
Thanks.

