You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mb...@apache.org on 2016/09/20 19:24:33 UTC

svn commit: r1761627 - /ofbiz/branches/release13.07/framework/catalina/ofbiz-component.xml

Author: mbrohl
Date: Tue Sep 20 19:24:33 2016
New Revision: 1761627

URL: http://svn.apache.org/viewvc?rev=1761627&view=rev
Log:
Improved: gzip json files served by tomcat.
(OFBIZ-8299)

Currently json files are not compressed. Updating the compressableMimeType setting in the http/https connectors makes them compressed.

I manually applied the changes and made all compressableMimeType settings the same.

Thanks: Chris Howe for reporting and providing the patch.

Modified:
    ofbiz/branches/release13.07/framework/catalina/ofbiz-component.xml

Modified: ofbiz/branches/release13.07/framework/catalina/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/framework/catalina/ofbiz-component.xml?rev=1761627&r1=1761626&r2=1761627&view=diff
==============================================================================
--- ofbiz/branches/release13.07/framework/catalina/ofbiz-component.xml (original)
+++ ofbiz/branches/release13.07/framework/catalina/ofbiz-component.xml Tue Sep 20 19:24:33 2016
@@ -116,7 +116,7 @@ under the License.
             <property name="address" value="0.0.0.0"/>
             <property name="bufferSize" value="2048"/>
             <property name="compression" value="on"/>
-            <property name="compressableMimeType" value="text/html,text/xml,text/plain,text/javascript,text/css"/>
+            <property name="compressableMimeType" value="text/html,text/xml,text/plain,text/javascript,text/css,application/json"/>
             <property name="noCompressionUserAgents" value=""/>
             <property name="connectionLinger" value="-1"/>
             <property name="connectionTimeout" value="60000"/>
@@ -154,7 +154,7 @@ under the License.
             <property name="address" value="0.0.0.0"/>
             <property name="bufferSize" value="2048"/>
             <property name="compression" value="on"/>
-            <property name="compressableMimeType" value="text/html,text/xml,text/plain,text/javascript,text/css"/>
+            <property name="compressableMimeType" value="text/html,text/xml,text/plain,text/javascript,text/css,application/json"/>
             <property name="noCompressionUserAgents" value=""/>
             <property name="connectionLinger" value="-1"/>
             <property name="connectionTimeout" value="60000"/>
@@ -274,7 +274,7 @@ under the License.
             <property name="acceptCount" value="10"/>
             <property name="address" value="0.0.0.0"/>
             <property name="bufferSize" value="2048"/>
-            <property name="compressableMimeType" value="text/html,text/xml,text/plain"/>
+            <property name="compressableMimeType" value="text/html,text/xml,text/plain,text/javascript,text/css,application/json"/>
             <property name="compression" value="on"/>
             <property name="connectionLinger" value="-1"/>
             <property name="connectionTimeout" value="60000"/>
@@ -312,7 +312,7 @@ under the License.
             <property name="acceptCount" value="10"/>
             <property name="address" value="0.0.0.0"/>
             <property name="bufferSize" value="2048"/>
-            <property name="compressableMimeType" value="text/html,text/xml,text/plain"/>
+            <property name="compressableMimeType" value="text/html,text/xml,text/plain,text/javascript,text/css,application/json"/>
             <property name="compression" value="on"/>
             <property name="connectionLinger" value="-1"/>
             <property name="connectionTimeout" value="60000"/>