graphqlCaching


This behavior configures how to cache Graphโ€‹QL-based API traffic. Enable caching for your Graphโ€‹QL API traffic, along with allowโ€‹Post to cache POST responses. To configure REST API traffic, use the rapid behavior.

OptionTypeDescriptionRequires
enabledboolean

Enables Graphโ€‹QL caching.

{"displayType":"boolean","tag":"input","type":"checkbox"}
cacheโ€‹Responsesโ€‹Withโ€‹Errorsboolean

When enabled, caches responses that include an error field at the top of the response body object. Disable this if your Graphโ€‹QL server yields temporary errors with success codes in the 2xx range.

{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
postโ€‹Requestโ€‹Processingโ€‹Errorโ€‹Handlingenum

Specify what happens if Graphโ€‹QL query processing fails on POST requests.

{"displayType":"enum","options":["APPLY_CACHING_BEHAVIOR","NO_STORE"],"tag":"select"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
APPLY_โ€‹CACHING_โ€‹BEHAVIOR

If your Graphโ€‹QL server does not allow mutations and subscriptions, this offloads requests.

NO_โ€‹STORE

Pass requests to the origin.

operationsโ€‹Urlโ€‹Queryโ€‹Parameterโ€‹Namestring

Specifies the name of a query parameter that identifies requests as Graphโ€‹QL queries.

{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
operationsโ€‹Jsonโ€‹Bodyโ€‹Parameterโ€‹Namestring

The name of the JSON body parameter that identifies Graphโ€‹QL POST requests.

{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"enabled","op":"eq","value":true}}