tomcat8启用gzip压缩 发表于 2017-07-01 | 分类于 java 阅读次数: 方法非常简单,只需要在Connector节点中加入以下内容即可: 12345useSendfile="false"compression="on" compressionMinSize="50" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain,application/javascript,application/x-javascript"