Compressing the body of requests isn’t done very commonly but if you’re sending a lot of data to the server from the front end it may be desirable to shrink it. In this episode we use pako (https://nodeca.github.io/pako/) to compress the body of a request reducing the size by 90%
Reference:
https://medium.com/axiomzenteam/put-your-http-requests-on-a-diet-3e1e52333014