Applies to: Protocol and format interpretation for developers inspecting authorized media delivery.
The useful distinctions
- Content-Encoding lists applied content codings in application order.
- Decoding removes those codings in reverse order.
- Content-Type describes the underlying representation format.
Draw the layers from inside outward
A playlist, a JSON document, and an encoded video track can each participate in several different layers. To inspect an HTTP response, first name the underlying representation and then any content codings wrapped around it. The synthetic field lists two codings, making their order explicit. Working from the outside inward requires reversing that list. This is a bookkeeping model for understanding metadata, not a claim that double compression is useful for a media service.
Do not substitute a codec setting
Changing an audio decoder setting does not explain or remove an HTTP content-coding layer. Conversely, successfully decompressing a response only exposes its underlying representation; it says nothing about whether a media track will decode. Keep these operations separate in notes and test plans. If comparing sizes, label the encoded and decoded sizes individually rather than calling both file size. When examining range offsets, also identify which representation those offsets address. A trace that omits the encoding context can make two correct byte counts look contradictory, even when the only difference is the outer wrapper. A useful intermediate-stage worksheet records encoded bytes, first decoded bytes, and final text separately. That makes a reversed decoding order visible without conflating compression failures with the media's own codec declaration.
Worked example · synthetic
This is a valid HTTP field-section excerpt. The illustrated pipeline applies deflate first, then gzip; a recipient would remove gzip first, then deflate before reading the text.
Synthetic text example; no network operation has been performed.
HTTP/MIME line endings are CRLF. Request URL context, where labelled, is commentary rather than a wire field. No message was transmitted.
Content-Type: text/plain; charset=utf-8
Content-Encoding: deflate, gzipCheck the interpretation
- Reverse the listed order when decoding.
- Label pre-coding and post-coding byte counts.
- Do not interpret gzip as a media track codec.