Re: The case for Content-Unencoded-Length

On Sun, Jul 19, 2026 at 02:17:13PM +0200, Julian Reschke wrote:
> Am 16.07.2026 um 10:45 schrieb Guoye Zhang:
> > Hi,
> > 
> > We recently enabled zstd support in Safari and received complaints that downloads from a popular cloud storage website are no longer showing progress and no longer resumable. Turns out that they are doing streaming zstd compression so they don't know the Content-Length.
> > 
> > Are there interests in standardizing a new header field Content-Unencoded-Length (similar to Unencoded-Digest)? I'm also interested in discussing a new range unit unencoded-bytes for download resumption.
> > 
> > Thanks,
> > Guoye Zhang
> 
> How about:
> 
>   HEAD /file.bin HTTP/1.1
>   Host: example.com
>   Accept-Encoding: identity
> 
> ->
> 
>   HTTP/1.1 200 OK
>   Content-Length: 5242880
> 
> This would be the non-encoded length.
> 
> Yes, one additional round trip (but HEAD can be done after starting the
> download), race conditions can be avoided with ETags.

This looks clean and cache-friendly as well, in that a cache may very
well hold various representations of the same file for clients using
different AE.

Willy

Received on Sunday, 19 July 2026 13:19:26 UTC