RE: Apache + DEFLATE : Does not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To add one more thing
I tested this with mozilla and firebug from outside my organization (from my home) and to my surprise it working. I am able to see the reduced size _javascript_ (7K instead of 29K)
But it still not working from inside my organization. Am I behind any proxy?
 
Thanks Again.
~Preetam


From: Preetam Palwe [mailto:preetamp@xxxxxxxxx]
Sent: Tuesday, November 06, 2007 9:04 PM
To: users@xxxxxxxxxxxxxxxx
Cc: preetam palwe
Subject: Apache + DEFLATE : Does not work

Hello 
    We have Apache serving our static contents and Jboss to serve the dynamic data / transactions.
We have changed configuration in Apache so that I can use html/xml/_javascript_ compression using mod_deflate.
But the problem is I am not able to receive compressed contents in browser. I have verified this in mozilla (2.0.0.9) using Firebug addon.
Can you please help me in this.

    Here is the sample configuration

<VirtualHost X.Y.Z.W:80> 
     ServerAdmin preet
...@aftek.com 
     DocumentRoot "/usr/java/jboss-4.0.3SP1/server/default/deploy/sample.ear/sample.war" 
    ServerName sample.aftek.com

     ErrorLog logs/sample-error_log 
     TransferLog logs/sample-access_log

     JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories

 JkMount /sample worker1
 JkMount /sample/* worker1

 JkUnMount /sample/images/* worker1
 JkUnMount /sample/css/* worker1
 JkUnMount /sample/js/* worker1

 DeflateFilterNote Input instream
 DeflateFilterNote Output outstream
 DeflateFilterNote Ratio ratio

 LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%) "%{User- agent}i"' deflate
 CustomLog logs/deflate_log deflate

 <Location /sample>
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/_javascript_
  AddOutputFilterByType DEFLATE application/x-_javascript_
 </Location>
</VirtualHost>

Version Info
Jboss:             jboss-4.0.3SP1
Apache:          httpd-2.0.52-28
Mod_jk:           mod_jk-1.2.15-1

Also
    I suspect there is something going wrong in response headers :
"Vary : Accept-Encoding"

Thanks for help in advance.

Thanks & Best Regards
~Preetam


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux