<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Can I enable content compression for the ivy webserver</title><link>https://answers.axonivy.com/questions/2177/can-i-enable-content-compression-for-the-ivy-webserver</link><description>&lt;p&gt;I'd like to enable content compression for the ivy webserver as we're sending huge files over slow networks.
Currently only CSS and JavaScript contents should be compressed as GZIP. How can I configure that?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2177/can-i-enable-content-compression-for-the-ivy-webserver" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 10 Nov 2016 10:56:34 -0500</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2177/can-i-enable-content-compression-for-the-ivy-webserver/2178</link><description>&lt;p&gt;You can enable content compression by settings &lt;a href="http://developer.axonivy.com/doc/latest/EngineGuideHtml/administration.html#administration-systemproperties"&gt;SystemProperties&lt;/a&gt; in the AdminUi. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WebServer.HTTP.CompressableMimType&lt;/strong&gt; : defines the content types which will be compressed
&lt;strong&gt;WebServer.HTTP.Compression&lt;/strong&gt; : defines whether compression is used&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/systemPropertiesHttpConnectorCompression.PNG"&gt;&lt;/p&gt;
&lt;p&gt;A restart is required to apply the properties. You can test if compression is on with a browser network debugger:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;without compression: &lt;img alt="uncompressed" src="http://answers.axonivy.com/upfiles/uncompressedCss.PNG"&gt; &lt;/li&gt;
&lt;li&gt;with compression: &lt;img alt="compressed" src="http://answers.axonivy.com/upfiles/compressedCss.PNG"&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These properties will be directly applied to the HTTP-Connector. So it has the same effect as defining them in raw server.xml. As described &lt;a href="http://community.jaspersoft.com/wiki/how-compress-http-responses-tomcat-level"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 10 Nov 2016 10:56:34 -0500</pubDate><guid>https://answers.axonivy.com/questions/2177/can-i-enable-content-compression-for-the-ivy-webserver/2178</guid></item></channel></rss>