DevOps System Administrator Jahia 8.2

Is it possible to configure the tomcat GZIP compression for assets?

Question

Is it possible to configure the tomcat GZIP compression for assets?

Answer

By default, the compression is already activated in the file TOMCAT_HOME/conf/server.xml: 

    <Connector port="8080" protocol="HTTP/1.1"
               redirectPort="8443"
               maxThreads="300" acceptCount="100"
               compression="on"
               compressibleMimeType="text/plain,text/html,text/xml,text/css,text/javascript,application/x-javascript,application/javascript,application/json,application/xml" />

If you need to alter this configuration, you can modify the connector accordingly to this official Apache Tomcat documentation then restart Jahia.