Apache mod_deflate not compressing responses from Adobe BlazeDS

Posted by DumCoder on Stack Overflow See other posts from Stack Overflow or by DumCoder
Published on 2010-05-31T04:47:11Z Indexed on 2010/05/31 4:52 UTC
Read the original article Hit count: 394

Filed under:
|
|
|

Hello, I have following setup

Apache Box <=> Weblogic Box1 <=> Weblogic Box2

Apache Box : mod_weblogic(weblogic apache plugin), mod_deflate

Weblogic Box1 : Weblogic 10.3 Weblogic Portal, Adobe BlazeDS

Weblogic Box2 : Weblogic 10.3 SUN Jersey for REST API

Apache forwards the request to Box1, where some of the REST requests get forwarded to Box 2 by Adobe BlazeDS.

On Apache i have setup mod_deflate and mod_weblogic as follows:

<IfModule mod_weblogic.c>
    WebLogicHost portalappeng.xxx.com
    WebLogicPort 7001
</IfModule>

<Location /Portal>
  SetHandler weblogic-handler
  SetOutputFilter DEFLATE
</Location>

but when i look at the Apache deflate log i only see the jsp responses from Box1 being compressed, but the responses which BlazeDS forwarded to Box 2 are not compressed. Also the .js and .css files which are served from Box1 are not compressed

Here are sample from log file, first response came directly from Box1 and got compressed, second and third also from Box1 but not compressed. Fourth one came from Box 2 to Box 1(BlazeDS) and then to Apache, not compressed.

What am i missing?

  1. "GET /Portal/resources/services/userService/users?AppId=CM&CMUserType=ContentProducer&token=PSWNV8kb8db4WMBgWUjAbw%3D%3D&UserId=user123 HTTP/1.1" 711/7307 (9%)
  2. "GET /Portal/css/jquery-ui-1.7.2.custom.css HTTP/1.1" -/- (-%)
  3. "GET /Portal/framework/skins/shared/js/console.js HTTP/1.1" -/- (-%)
  4. "POST /Portal/messagebroker/http HTTP/1.1" -/- (-%)

© Stack Overflow or respective owner

Related posts about apache

Related posts about weblogic