Pergunta

How can I enable page/gzip compression for JBoss EAP 6.2?

I have found information online for older JBoss AS, but nothing for EAP.

Foi útil?

Solução

you can do this by:

file : standalone.xml (JBoss AS 7+ )

Position : right after

<extensions>

</extensions>

<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,text/xml,text/json"/>  <!-- add other content types you want to gzip -->
</system-properties>
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top