Release
Cache - Range requests respect client Accept-Encoding
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
- #caching
- #http
- #range-requests
- #compression
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…