Response Size vs Content Length

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.

Here’s an outline with best practices for making your inquiry.

My question: Can someone please explain the different between the response size and the content length of a json response.

Details (like screenshots):

With gzip

image

With br compression

How I found the problem:

The above screenshots are from the same response data,

  1. with gzip compression enabled. (~18KB response size and 18543 bytes = 18 KB)

  2. If I use the br compression, the content length and response size are different. (~81 KB response size and 18719 bytes = 18 KB)

I’ve already tried: