Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
Improved: gzip json files served by tomcat.
Browse files Browse the repository at this point in the history
(OFBIZ-8299)

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

Thanks: Chris Howe for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761618 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mbrohl committed Sep 20, 2016
1 parent 5398537 commit 7f6bdbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framework/catalina/ofbiz-component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ under the License.
<property name="URIEncoding" value="UTF-8"/>
<property name="xpoweredBy" value="false"/>
<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"/>
<!-- commented out because the values match the Tomcat defaults:
<property name="allowTrace" value="false"/>
<property name="enableLookups" value="false"/>
Expand Down Expand Up @@ -133,7 +133,7 @@ under the License.
<property name="URIEncoding" value="UTF-8"/>
<property name="xpoweredBy" value="false"/>
<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"/>
<!-- SSL connector attributes -->
<property name="sslImplementationName" value="org.apache.ofbiz.catalina.container.SSLImpl"/>
<property name="algorithm" value="SunX509"/>
Expand Down Expand Up @@ -189,7 +189,7 @@ under the License.
<property name="URIEncoding" value="UTF-8"/>
<property name="xpoweredBy" value="false"/>
<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>
<property name="https-connector" value="connector">
<!--<property name="address" value=""/>-->
Expand All @@ -201,7 +201,7 @@ under the License.
<property name="URIEncoding" value="UTF-8"/>
<property name="xpoweredBy" value="false"/>
<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="sslImplementationName" value="org.apache.ofbiz.catalina.container.SSLImpl"/>
<property name="algorithm" value="SunX509"/>
<property name="keystoreFile" value="framework/base/config/ofbizssl.jks"/>
Expand Down

0 comments on commit 7f6bdbe

Please sign in to comment.