Ron McLeod wrote:If you compress your resource in the application and then pass it the server something with a Content-Type of application/gzip, the server will no longer be able to tell the format of the representation (json, xml, csv, etc.). The compression and expansion of the payload should be managed by the HTTP client and server and it should be transparent to the application at either end. Here's an example of what the HTTP headers will look like leaving the HTTP client without and with gzip encoding:
Without gzip compression enabled in the client:
With gzip compression enabled in the client:
ok' I did what you told me in rest client named DHC (chrome app).
I am sending now json ~1MB and I dont see and improvement.
my Tomcat: