My FNZ Studio Version

Solution Maintenance

Latest Update: 16.11.2023 |
Recipe
2024
2023

Problem

I would like to compress traffic and optimize my customer's Solution. Does FNZ Studio support the compression of HTTP responses or do I need to rely on the Application Server compression?

Solution

Compression supported by FNZ Studio

FNZ Studio already supports compression of HTTP responses with the help of the embedded third-party ziplet library, but compression is not applied to every response. Whether compression is applied or not mainly depends on the content type of the response. Compression is enabled for the following content types:

  • text/html
  • text/javascript and application/javascript
  • text/css
  • application/json
  • image/svg+xml
  • text/xml and application/xml
  • text/plain

Moreover, the browser must also indicate that it supports compression by including an 'Accept-Encoding' HTTP header with a value such as gzip or deflate.

Finally, the response body must have a size of at least 1024 bytes. Smaller responses are not compressed.

Compared to earlier versions of FNZ Studio/Appway where HTTP compression was applied based on the request URL path, the new improved logic now also compresses SVG images, Web API responses, and REST API responses, as long as they meet the above requirements.

Compression supported by Application Servers

I you want to enable HTTP compression at the Application Server level (e.g. Tomcat), consider the following points:

  1. FNZ Studio cannot guarantee that there are no interference between the Application Server and FNZ Studio's compression logic. We therefore suggest to disable HTTP compression in FNZ Studio by setting the following configuration property: nm.http.compression.enabled = false.
  2. Make sure that you check compression-related configuration settings (depending on your e.g. Tomcat version). These usually include:
    • Settings for configuring a minimum response size (below which compression is useless and therefore not applied).
    • Setting for including/excluding certain responses from compression usually based on content type ( e.g. compressing already compressed responses, such as image files, is pointless).
  3. Finally, extending compression on more responses is likely to have a negative impact on CPU and memory usage of the client and the server (and possibly in-between network devices such as firewalls and proxy servers), but a positive impact on the bandwidth. Such impacts can only be evaluated on-site.
© 2026 Appway AG. All Rights Reserved