Using gzip on graphql-java-spring-webmvc
jmdsg opened this issue · 1 comments
jmdsg commented
Hi, is there any way to gzip the response when the request headers contains a Accept-Encoding: gzip
.
Thanks in advance.
jmdsg commented
Just found the answer.
Need to add this to my application.properties
or application.yml
:
server:
compression:
enabled: true
mime-types: application/json
min-response-size: 10240 # only compress responses over 10KiB