Compression : compressedMimeTypes does not work as expected. #8908
jprakashbabu
started this conversation in
Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using dropwizard 2.1.11 and enabled compression for certain mime types as shown below.
compressedMimeTypes : text/html,text/xml,application/x-javascript,text/javascript,text/cssand see that application/x-javascript is not getting compressed even though its there in the list
However if I don't specify any compressedMimeTypes and leave the default values to get picked up, application/x-javascript gets compressed (Content-Encoding: gzip)
Can you please let me know if I am missing something here (or) is the exclude list taking precedence over the include ?
PS: Both the above requests were identical and had Accept-Encoding:gzip, deflate, br, zstd
thanks,
Prakash
Beta Was this translation helpful? Give feedback.
All reactions