Edit online

How to Enable GZIP Compression in Oxygen Feedback

There are two possible ways to enable GZIP for Oxygen Feedback Enterprise, using a web server or the built-in GZIP support.

Web Server - Nginx (Recommended)

  1. [Prerequisite] You need to have Nginx installed and configured as a reverse proxy.
  2. Configure Nginx to enable GZIP compression.
    Sample configuration for Nginx to enable GZIP compression:
    server {
        ......             
        gzip on;
        gzip_types text/css text/javascript application/javascript text/xml text/plain application/json application/xml;
        gzip_proxied no-cache no-store private expired auth;
        gzip_min_length 1024;
        gzip_vary on;
        gzip_comp_level 5;
    }           

    For more information, see: https://docs.nginx.com/nginx/admin-guide/web-server/compression/.

  3. Restart Nginx.

Built-in GZIP Support

Oxygen Feedback also supports HTTP GZIP compression to improve transfer speed and save bandwidth. By default, gzip compression is enabled.

To change the compression settings, open the $OXYGEN_FEEDBACK_INSTALL_DIR/oxygen-feedback-home/config/feedback-server.properties file and edit the following properties:
# Enable response compression
server.compression.enabled=true

# The comma-separated list of mime types that should be compressed
server.compression.mime-types=text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml

# Compress the response only if the response size is at least 1KB
server.compression.min-response-size=1024
The above configuration enables the gzip compression for all responses for the enumerated mime-types. The wildcard in mime-types are not supported. You should explicitly provide the list of all mime-types.
Note: The gzip compression consumes time and server resources. Thus, you should enable the compression only when the response exceeds a certain limit.