-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Martynas,
On 3/26/20 07:17, Martynas Jusevičius wrote: > I enabled GZip compression on <Connector> using 8.0.44. You need to upgrade. Support for Tomcat 8.0 ended nearly 2 years ago: http://tomcat.apache.org/tomcat-80-eol.html > Then I noticed that text/html documents are getting compressed, > but others were not. > > I guess this is due to the default compressibleMimeType? Which is > "text/html,text/xml,text/plain,text/css,text/javascript,application/ja vascript". > > https://tomcat.apache.org/tomcat-8.0-doc/config/http.html (We should probably add: application/json, application/xml, application/xhtml+xml, and application/soap+xml. Some Tomcat versions already have these in the default default.) > What would be the downside if I specified compressibleMimeType to > compress all media types? Including binary files etc. I guess that > would be compressibleMimeType="*/*". This will not work, since Tomcat doesn't perform MIME-type globbing or pattern-matching. The docs say it's a list of MIME types, not a pattern or anything like that. If you were to enable it for all types, you may compress already-compressed data. That usually results in an increase in size, so wasted effort all around. What kinds of media-types are you hoping to compress that aren't already on the default list? - -chris -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl58o+cACgkQHPApP6U8 pFi/QRAAgkcGyZNMAagBsO0/KT29N1MbA97B9mHsvvWARbFW1dFd6jtHCsG3vtTN dsN4ZoEtaeUQ3gUzXXP5z4BwQqtFROywyYC29Td7/uh5T2Ege7shL22Y8zvSUwel NxL2cveQuFfKde37fwlU/mvGvMhoQ6Q+ZmXTm1yk64QAyJ/p80pzleleMKrlWtS0 QJ7bVK5MYRagVcHIa7DsiEgovi4eeC715IOLK3rnNHWvr5o1Gxwsi0223+0pQppK x6ZmFAkC4t4EyZnuOyQ/5y2but0PswtVK5TYjkCyhQibyFGk8Y1g3eYdluZk2UXp M6ISQJSXwBORJXpX6apXBDGgnb7tjfRbfugNSVIlfCR9z+eRESiJ0hKbQdLqzW0L b9IckMIqB11/b3wIGpkFiIHnufDiBvdPsPiuhcHZL+RWxs5RcCRWtNc3oV14MTaC tU1rgSCcHJ+dIazC7OT8vz/MxiE2JAoUPPSHpFKLCaOSqTZvATDi0L7Dw5Fl14g0 /c9j6IGGhkeQStYX6f1dZo8P7HKuc8vNBM3bMxj0p1av9oIWtnpgjU1gRljIzbe0 IZn+9IRqUHZHqot712mF7J8OcUJBW2QdCzwTIKWundbFQmsbfW9QigqA01lNhNEe hFZJ565HxydDhr8VKEA6Cfvyec4CXdVv9CapS3DTuy4OhGvWIRs= =Vs9P -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org