International
The Morning Dev

Only the news worth knowing

‹
 

Release

Cache - Range requests respect client Accept-Encoding

Cloudflare Changelog ·

The Brief

  • Cloudflare changed how range requests handle content encoding for cached files and uncached GET requests over HTTPS.
  • For cached files encoded with gzip or Brotli (br), a byte range counts bytes of the encoded file, not of the decompressed content.
  • The changelog cites RFC behaviour as the basis for the change; the source excerpt is truncated.

Why it matters

Clients that request byte ranges of compressed content through Cloudflare cache must use offsets into the encoded bytes, so code that assumes offsets into the decompressed content may get different results.

Who’s affected

  • Teams serving compressed files through Cloudflare cache with HTTP range requests

Cloudflare updated how range requests handle content encoding for both cached files and uncached GET requests over HTTPS. Cached encoded files A byte range of a cached file encoded with gzip or Brotli ( br ) counts bytes of the encoded file, not of the decompressed content ( RFC…

Timeline

  1. Cloudflare changelog announces range requests respect client Accept-Encoding

  2. Cloudflare changelogs

    Cache - Range requests respect client Accept-Encoding

How do you feel about this?

0 Comments

    Cache - Range requests respect client Accept-Encoding – The Morning Dev