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!
Instead of modifying the standalone.xml file try to edit the standalone.conf file and add these lines:
If you are on a unix/linux/macos you can use curl to verify:
Check on the reponse your server is returning text/javascript, text/css or text/html:
Otherwise if you are getting some other Content-Type, add it to your list of COMPRESSION_MIME_TYPES