Pretty straight forward question:
What are the pros/cons for enabling gzip on Spring server v.s. nginx? The Spring Server is only used to serve RESTful api requests (json) and Nginx is used as a reverse proxy before the Spring server
I searched around but no one seems have a very good answer. This answer (Using GZIP compression with Spring Boot/MVC/JavaConfig with RESTful) talks about it should be enabled on nginx because it's more efficient (and IRL people do this)
Thus I'm wondering if anyone has experience with this? What people usually do?