首页 > 代码库 > Tomcat JS资源压缩配置修改(备忘)

Tomcat JS资源压缩配置修改(备忘)

server.xml


修改前:

<Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1"           connectionTimeout="20000"           maxThreads="400" acceptCount="200"          redirectPort="8443" URIEncoding="UTF-8" />  

修改后:

<Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1"           connectionTimeout="20000"           maxThreads="400" acceptCount="200"          redirectPort="8443" URIEncoding="UTF-8"          compression="on"          compressionMinSize="2048"          compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"           noCompressionUserAgents="gozilla" />  

 

Tomcat JS资源压缩配置修改(备忘)