Graphene-django: GraphQL Compression for query and response

Created on 15 Nov 2018  路  4Comments  路  Source: graphql-python/graphene-django

I would like to ask if gzip/zlib compression is already enabled for Graphene-Django endpoints and if it needs for the client to send the header Accept-Encoding: gzip to enable it.

Also is there a method or a library to compress GraphQL queries in Python?

Thanks a lot

wontfix

Most helpful comment

Would also like some more information on this

All 4 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Any updates?

Would also like some more information on this

I found that enabling the Django gzip middleware django.middleware.gzip.GZipMiddleware works well. Pass the Accept-Encoding: gzip header and it works like a charm.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dan-klasson picture dan-klasson  路  4Comments

mraak picture mraak  路  3Comments

khankuan picture khankuan  路  4Comments

licx picture licx  路  3Comments

Dawidpol picture Dawidpol  路  4Comments