compression="on" compressionMinSize="2048" compressableMimeType="application/json;charset=UTF-8"
restTemplate加request.getHeaders().setAcceptEncoding(ContentCodingType.GZIP);
Hi,
I have an apache tomcat 5.5.17. In my server.xml file I have put
[HTML] <Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
compression="on"
compressionMinSize="2048000"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/plain,application/dime"
/>[/HTML]
But, it always compress the response althought it be less than 1kb.
What do I have to do for set a compresionminsize?
Thanksss