Project

General

Profile

Actions

Improvements #14479

open

Uncompressed json response with application/json

Added by Swan Bosc 30 days ago. Updated 23 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
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,

Actions #1

Updated by Romain Mardulyn 23 days ago

  • Tracker changed from Bug to Improvements
  • Target version set to 4.14.0
Actions

Also available in: Atom PDF