Tomcat Gzip Compression
Enable tomcat gzip
compression in you application server can improve performance by reducing network load for some resources.
Edit file /conf/server.xml
and add to the HTTP Connector
configuration something like this:
compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,text/plain,text/json,text/css,text/javascript,application/javascript,application/xml,application/xml+xhtml"
compressionMinSize
: If a file is too small, the overhead of compressing it may take longer than sending it uncompressed. You can define a minimum size for which a compression should not be done.
Comments
Post a Comment