GZIP in enaio® webclient
enaio® webclient can transfer resources in compressed format. This saves a large amount of bandwidth and therefore increases the speed of enaio® webclient.
Before using compression, please check your network infrastructure and router to ensure compatibility with GZIP-compressed data transmission when processing web requests.
Configuring the Compression
There are two attributes for this in the HTTP connector in the conf\server.xml file of the Tomcat distribution.
-
Selecting file types
Parameters:
compressibleMimeType
Values:
"text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,image/svg+xml"
Description:
Specifies which file formats should be compressed with GZIP.
-
Using Compression
-
on: GZIP compression is enabled.
-
off: GZIP compression is disabled.
Parameters: |
compression |
Default value: |
|
Description: |
Specifies whether GZIP compression should be used. |
The setup of enaio® webclient following a reinstallation sets the compression value to on. Following updates, both values remain unchanged.
<Connector port="9090" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
compressibleMimeType="text/html, text/xml, text/plain, text/css, text/javascript, application/javascript, application/json, image/svg+xml"
compression="on"
GZIP Compression in enaio® appconnector
It is also recommended that GZIP compression be used in enaio® appconnector. It can be enabled exactly as described here for enaio® webclient. Please check whether all other clients that also request data via enaio® appconnector can handle the compression.