APIM with graphql, does the request are cached ?

Clement Fayol 20 Reputation points
2023-09-27T13:24:56.4433333+00:00

Hello

I would like to verify that the API Manager can't cache graphql call.

The documentation for the rest is clear : https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-cache. But for graphql policy, the cache policy is disable :

User's image

Do you have any explanation on this ?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,116 questions
0 comments No comments
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 27,021 Reputation points
    2023-09-27T18:44:55.37+00:00

    Hi Clement Fayol Thanks for reaching out. API Management only performs cache lookup for HTTP GET requests.
    In the case of GraphQL, all requests are POST requests, so it's not cached.

    Reference: https://learn.microsoft.com/en-us/azure/api-management/cache-lookup-policy#usage-notes

    let me know if you have further queries.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.