Expand my Community achievements bar.

SOLVED

graphql endpoint is not cache at dispatcher

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Please check the persisted queries feature: https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...

 

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.

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Please check the persisted queries feature: https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...

 

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.

Avatar

Level 1

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.