I'm trying to add gzip compression to my server (reading and writing) I've tried it with (spring boot):
server.tomcat.compression=on
server.tomcat.compressableMimeTypes=application/json,application/xml,text/html,text/xml,text/plain
but when my client sends :
GZIPOutputStream gzip = new GZIPOutputStream(baos);
gzip.write(content.getBytes(Charset.forName("UTF8")));
gzip.close();
with headers :
Accept-Encoding" - "gzip"
"Content-Encoding" - "gzip"
The data reaches the service still compressed. What did I missed?