Actions
Improvements #14479
openUncompressed json response with application/json
Start date:
04/16/2026
Due date:
% Done:
0%
Estimated time:
Description
Hi,
The logic to decide whether a "Reply" in Reply.c is compressed is based on the mime type.
It is quite limiting as many response might not set it properly and many mime types exists that are note supported by this "or" (see https://www.iana.org/assignments/media-types/media-types.xhtml)
For example "application/json" isn't compressed.
What I would do (actually did in our project that uses wt) is to compress everything. This is what google does, because the overhead is quite okay and it is better to compress uncompressible objects than to not compress compressible ones.
The other option is to maintain a set of uncompressible mime types and to add a mime type to the set once it hasn't been compressed successfully.
Regards,
Updated by Romain Mardulyn 23 days ago
- Tracker changed from Bug to Improvements
- Target version set to 4.14.0
Actions