I tried to compress the Http response by making following changes into the standalone.xml:
<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/json"/>
</system-properties>
But this solution didn't worked. I also passed the "Accept-Encoding:gzip,deflate" header in the request, when I intercepted the http response from server using fiddler it was not compressed.
Please help!