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

Mandeep Sidhu commented on OFBIZ-4792:
--------------------------------------

I analyzed the URL being accessed by my application, I am trying to consume a 
version of jquery from google's CDN.
URL: http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

the size I am getting back is around 72KB, which is not gzipped, although Ofbiz 
is sending gzip as part of content-encoding. Here's what OFbiz is requesting

Vary    Accept-Encoding
Content-Encoding        gzip
Content-Type    text/javascript; charset=UTF-8
Last-Modified   Mon, 02 Apr 2012 18:24:28 GMT
Date    Wed, 04 Apr 2012 16:56:11 GMT
Expires Thu, 04 Apr 2013 16:56:11 GMT
X-Content-Type-Options  nosniff
Server  GFE/2.0
Content-Length  24605
X-XSS-Protection        1; mode=block
Cache-Control   public, max-age=31536000
Age     328756

One thing to note here is that it is not sending the user-agent header, and 
surprisingly google's CDN doesn't understand this and expects an established 
user-agent header,
I used some tool to hit the same url and sent user-agent explicitly, 
surprisingly the received file size was 25Kb.

do you've any idea as to why OFBIZ(tomcat server ) is omitting the user-agent 
header.
                
> Add a yui-compressor-ant-task
> -----------------------------
>
>                 Key: OFBIZ-4792
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4792
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Windows/Linux
>            Reporter: Mandeep Sidhu
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>              Labels: build, compression, css, features, javascript
>             Fix For: SVN trunk
>
>
> The idea is to create an ant task which uses 
> [YUICompressor|http://developer.yahoo.com/yui/compressor/] to dynamically 
> minify our own (or custom for users) js and css files (most of the bigest 
> external ones are already compressed)

--
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