-
-
Notifications
You must be signed in to change notification settings - Fork 273
mark application/octet-stream as compressible #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
most things sent as application/octet-stream would benefit from compression it
It's possible. Can you provide data on this? Perhaps a definition of "most" like what % of data transferred under this is compressible and by how much? Or at least something concrete to make the decision on?
Hi @dougwilson .
|
671c853
to
e35c46e
Compare
I did a cursory search for this and I also see no evidence this is not compressible. That said, I am not confident enough to approve and merge this change without more input than we have here. If anyone can help make a strong case for this change I will try to land it, but else wise I will let this sit for now. |
I really can't find any information that this should be compressible. :c |
compression is supposed to be transparent. You'd need some evidence that it's NOT compressible, otherwise, by default, everything is compressible. |
I don't completely agree with that. If this is made compressible, then higher-level packages like compression would compress the responses when it has that MIME type. There wouldn't be a problem if it can actually be compressed, but it would be a big issue where it shouldn't be done. |
Yeah, it is a bit of a tough case. I think I theory @greggman should be correct, but in reality if @bjohansebas is correct it is a much worse outcome because it actually breaks things. I don't have a good answer, but in theory we do not consider data changes like this as part of our semver contract so releasing here would be reasonable. The problem is that when we went to update in |
I want to trust that I won't break compression. Fastify seems to accept this MIME type for compression. I would even like to ping the maintainers of that package to get their opinion, since it could also break them. edit: I've posted on Slack to see if anyone from Fastify can take a look at it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok for us
Ah, good find on that @bjohansebas and for pinging in @mcollina for the confirmation. Sounds like we agree then that we can merge this for the next release. |
didn't see anything in iana rfc about this not being compressible.
I see a few extensions that are probably already compressed like distz and dmg but overall most things sent as application/octet-stream would benefit from compression it seems.