[ 
https://issues.apache.org/jira/browse/OFBIZ-4792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249504#comment-13249504
 ] 

Jacques Le Roux commented on OFBIZ-4792:
----------------------------------------

You are missing a point Mandeep.

OFBiz is already compressing text files. This is done through the embedded 
Tomcat. See in ofbiz-containers.xml
{code}
<property name="compressableMimeType" value="text/html,text/xml,text/plain"/>
<property name="compression" value="on"/>
{code}

Reference: http://tomcat.apache.org/tomcat-7.0-doc/config/http.html

So my proposition was only to add an yui-compressor-ant-task to compress those 
files as described here http://developer.yahoo.com/yui/compressor/

                
> Using GZip compression for js/css files
> ---------------------------------------
>
>                 Key: OFBIZ-4792
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4792
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL APPLICATIONS, specialpurpose/ecommerce
>    Affects Versions: SVN trunk
>         Environment: Windows/Linux
>            Reporter: Mandeep Sidhu
>            Priority: Trivial
>              Labels: build, compression, features, javascript
>             Fix For: SVN trunk
>
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> I was wondering if it is possible to reduce the size of external 
> javascript's/css files being fetched by making use of GZip encoding.
> The feeding server does understand and responds to GZip encoding, however 
> Ofbiz is not requesting the content in GZip format.
> Kindly include this feature so that Ofbiz will include the GZip encoding 
> option in the http header while requesting the external javascript file ?
> Also, if possible integrate the compressor module 
> http://code.google.com/p/yui-compressor-ant-task/
> as suggested by Jacques (Jacques Le Roux jacques.le.roux)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to