tomcat gzip compression not working for large js files

solution 1:

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

http://grokbase.com/t/tomcat/users/111d593qft/tomcat-6-0-gzip-compression-not-working-for-large-js-files

solution 2:

Add the custom gzip filter

http://darrenzhu.iteye.com/blog/1894261

原文地址:https://www.cnblogs.com/leon032/p/3512915.html