Configurate Tomcat 8 with GZIP
<p>I'm trying to set GZIP in Tomcat, I've shown a lot of examples but anyone works for me. Below you can see my server.xml configuration and an example of request:</p>

<p>server.xml</p>

<pre><code>&lt;Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
               useSendfile="false"
               compression="force" compressionMinSize="1024" noCompressionUserAgents="gozilla, traviata"
       compressableMimeType="text/html,text/xml,text/javascript,text/css,application/javascript"/&gt;
</code></pre>

<p>request:</p>

<p><a href="https://i.stack.imgur.com/u745p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u745p.png" alt="request with GZIP enabled"></a></p>

<p>Thanks!</p>