0

I am using GZIP compression technique to compress various files in my application. All the files were getting Gzipped and compressed when I was using them on my local server (jBoss EAP 6.1--Standalone-Full profile) but when I tried to implement that on my server (Linux System) the same is not happening .

I added this in my standalone -- > for windows system .

 <system-properties>
        <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION" value="on"/>
        <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION_MIME_TYPES" value="text/javascript,text/css,text/html,application/font-woff,application/json,application/javascript,image/gif"/>
    </system-properties> 

I added this in my linux system profiles also .

Can someone give me a solution Why is it not working on my server (Linux) but working with my local server (Windows System).

vaibhav
  • 762
  • 2
  • 12
  • 34

1 Answers1

0

Caveat: I don't have jBoss to test this.

The first step would be to check the server logs whether it has seen the option and applied it or whether there is an error.

Then you need to check the headers which the client and the server exchange and look for the Accept-Encoding (client) and Content-Encoding (server) header parameters to see whether both support gzip and whether they actually use it. See https://en.wikipedia.org/wiki/HTTP_compression for the protocol.

Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
  • - Aaron actually the It is working very well in the local server environment when I am using Jboss integrated with eclipse but when i am going for standalone server (on LINUX MACHINE) It is creating a problem I have checked the logging scheme and checked the encoding I am not getting gZip that I used to get in the local system. – vaibhav Jun 02 '15 at 09:29
  • Compare the log files which both the local and the Linux server write and look for differences. – Aaron Digulla Jun 02 '15 at 09:53