Configurate Tomcat 8 with GZIP

久未见 提交于 2019-12-13 01:28:30

问题


I'm trying to set GZIP in Tomcat, I've shown a lot of examples but anyone works for me. Below you can see my server.xml configuration and an example of request:

server.xml

<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
               useSendfile="false"
               compression="force" compressionMinSize="1024" noCompressionUserAgents="gozilla, traviata"
       compressableMimeType="text/html,text/xml,text/javascript,text/css,application/javascript"/>

request:

Thanks!


回答1:


I've found the answer, I've disabled my antivirus and compression works fine.



来源:https://stackoverflow.com/questions/37481597/configurate-tomcat-8-with-gzip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!