Enable compression for JS, CSS, JSON and XML responses
Some static .js and .css files in particular and dynamic JSON and XML responses can be quite large, and would benefit from being compressed to reduce load times and bandwidth usage.
There are several possible approaches:
1. Frontend httpd servers like Apache httpd can compress on-the-fly with mod_deflate for specific content-types:
Sample configuration in httpd.conf:
2. We could set a gzip compression filter in jetty:
Just if someone is using Nginx:
I can compress proxied content as well