Skip to content

Commit 28a67c6

Browse files
mandiwisebenjie
andauthored
Apply suggestions from code review
Co-authored-by: Benjie <[email protected]>
1 parent 6f7fa7b commit 28a67c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pages/learn/performance.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ In practice, however, GraphQL is as cacheable as any API that enables parameteri
88

99
On this page, we'll explore several different tactics that can be leveraged in GraphQL clients and servers to optimize how data is fetched from the API.
1010

11+
## Client-side caching
12+
13+
There is a range of client-side caching strategies that GraphQL clients may implement to help not only with performance but also to ensure that you render a consistent and responsive interface to your users. [Read more about client-side caching](/learn/caching).
14+
1115
## `GET` requests for queries
1216

1317
GraphQL implementations that adhere to the [GraphQL over HTTP specification](https://github.com/graphql/graphql-over-http/blob/main/spec/GraphQLOverHTTP.md) will support the `POST` HTTP method by default, but may also support `GET` requests for query operations.
@@ -50,7 +54,7 @@ Certain demand control mechanisms can help guard a GraphQL API against these ope
5054

5155
## JSON (with GZIP)
5256

53-
GraphQL services typically respond using JSON even though the GraphQL spec [does not require it](http://spec.graphql.org/draft/#sec-Serialization-Format). JSON may seem like an odd choice for an API layer promising better network performance, however, because it is mostly text it compresses exceptionally well with GZIP.
57+
GraphQL services typically respond using JSON even though the GraphQL spec [does not require it](http://spec.graphql.org/draft/#sec-Serialization-Format). JSON may seem like an odd choice for an API layer promising better network performance, however, because it is mostly text it compresses exceptionally well with algorithms such as GZIP, deflate and brotli.
5458

5559
It's encouraged that any production GraphQL services enable GZIP and encourage their clients to send the header:
5660

0 commit comments

Comments
 (0)