Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 305 Bytes

compress-your-req-res-with-gzip.md

File metadata and controls

10 lines (9 loc) · 305 Bytes

Compressed communication -- GZIP

  • Respond using JSON.
    • GraphQL spec does not require it.
    • But it is:
      • Easy to read and debug.
      • Very familiar to client and API developers.
  • For better network performance:
    1. Enable GZIP.
    2. Clients should send the header: Accept-Encoding: gzip.