-
I noticed a strange contradiction between the website the docs for Hasura Cloud: On the website (https://hasura.io/graphql/caching/) it says "Hasura Cloud supports query response caching for Remote Schemas" However, according to the docs (https://hasura.io/docs/latest/graphql/cloud/response-caching.html) the following is true: "A query’s response can be cached only if the following conditions hold: The query does not make use of remote schemas or remote joins" Does anyone know if caching is actually supported for remote schema responses? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @vangelov The relevant validation performed is:
With
So I believe that this should allow caching actions and remote schemas without forwarded headers in Hasura cloud. Therefore I believe that the documentation will need to be updated. We will confirm this and update the docs if it is indeed incorrectly documented. |
Beta Was this translation helpful? Give feedback.
Hi @vangelov
The relevant validation performed is:
NotSupported: "The maximum allowed TTL is {{maxTTL}} seconds"
NotSupported: "Remote joins that forward client headers cannot currently be cached"
NotSupported: "Actions that forward client headers cannot currently be cached"
With
hasRemoteJoinsForwardingHeaders
looking for anyvrsdFwdClientHeaders
in the associated remoteSchemasand
hasActionsFowardingHeaders
looking for any_asiForwardClientHeaders
in the associated actionsSo I believe that this should allow caching actions and remote schemas without forwarded headers in Hasura cloud.
Therefore I belie…