Actions
Improvements #14479
closed
SB
RM
Uncompressed json response with application/json
Improvements #14479:
Uncompressed 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,
RM Updated by Romain Mardulyn 5 months ago
- Tracker changed from Bug to Improvements
- Target version set to 4.14.0
RM Updated by Romain Mardulyn 4 months ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
RM Updated by Romain Mardulyn 4 months ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
RM Updated by Romain Mardulyn 4 months ago
- Tracker changed from Improvements to Feature
RM Updated by Romain Mardulyn 4 months ago
- Tracker changed from Feature to Improvements
ED Updated by emil de keyser 2 months ago
- Assignee set to emil de keyser
ED Updated by emil de keyser 2 months ago
- Status changed from Review to Resolved
- Assignee changed from emil de keyser to Romain Mardulyn
RM Updated by Romain Mardulyn 2 months ago
- Status changed from Resolved to Implemented @Emweb
RM Updated by Romain Mardulyn about 2 months ago
- Status changed from Implemented @Emweb to Closed
Actions