Http 请求数据流的压缩

Tomcat5.0以后的配置:
server.xml 的 <Connector/>:
<Connector 
  port="8080" 
  maxHttpHeaderSize="8192"               
  maxThreads="150" 
  minSpareThreads="25" 
  maxSpareThreads="75"
  enableLookups="false" 
  redirectPort="8443" 
  acceptCount="100" 
  connectionTimeout="20000" 
  disableUploadTimeout="true" 
  <!-- 以下这几行 -->
  compression="on" 
  compressionMinSize="2048" 
  noCompressionUserAgents="gozilla, traviata" 
  compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain" 
/>

你可能感兴趣的:(JavaScript,java,html,xml,css)