graphql endpoint is not cache at dispatcher | Community
Skip to main content
New Member
October 12, 2023
Solved

graphql endpoint is not cache at dispatcher

  • October 12, 2023
  • 1 reply
  • 985 views

Graphql endpoint is not getting cached at dispatcher. It is reading as no-extension.

 

checking [/graphql/execute.json/test-graphql/demoQuery]

request URL has no extension: /graphql/execute.json/test-graphql/demoQuery

cache-action for [/graphql/execute.json/test-graphql/demoQuery]: NONE

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Please check the persisted queries feature: https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/graphql/advanced-tutorial/graphql-persisted-queries.html?lang=en

 

Caching generic graphql requests is not possible because most implementations send them as POST, which by standards is not cachable. In that case even an extension would not help.

1 reply

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 14, 2023

Please check the persisted queries feature: https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/graphql/advanced-tutorial/graphql-persisted-queries.html?lang=en

 

Caching generic graphql requests is not possible because most implementations send them as POST, which by standards is not cachable. In that case even an extension would not help.

November 29, 2023

Hi

are we able to cache the GraphQL persisted query ?

Since this query would be implemented as GET, so I believe the Dispatcher can cache this.