如何为Jboss EAP6.2启用页面压缩

Mar*_*k W 1 http-compression jboss-eap-6

如何为JBoss EAP 6.2启用页面/ gzip压缩?

我在网上找到了旧的JBoss AS的信息,但没有为EAP提供任何信息.

Sas*_*ing 6

你可以这样做:

file:standalone.xml(JBoss AS 7+)

位置:紧随其后

<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>
Run Code Online (Sandbox Code Playgroud)