Enable compression for JS, CSS, JSON and XML responses

Description

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:

http://httpd.apache.org/docs/current/mod/mod_deflate.html

Sample configuration in httpd.conf:

2. We could set a gzip compression filter in jetty:

http://www.eclipse.org/jetty/documentation/current/gzip-filter.html

Activity

Show:
Lars Kiesow
February 13, 2017, 11:31 PM

Just if someone is using Nginx:
I can compress proxied content as well

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Unassigned

Reporter

Stephen Marquard