GZIP不适用于Apache tomcat

时间:2018-08-18 05:24:16

标签: windows apache tomcat web gzip

Apache tomcat(8.0.36)

1。我已经在根目录中添加了.htaccess文件,但它也无法正常工作

2。我在server.xml中添加了以下代码

<Connector connectionTimeout="20000" port="80" protocol="HTTP/1.1" 
disableUploadTimeout="true" 
compression="on" 
compressionMinSize="2048" 
noCompressionUserAgents="gozilla, traviata"  
compressableMimeType="text/html,
text/xml,text/plain,text/javascript,text/css,application/json"/>

0 个答案:

没有答案