Вопрос

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.

Это было полезно?

Решение

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>
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top