I’m trying to figure out how to use the cache API in workers with ranged requests.
The documentation is a bit confusing.
First it says that caching a response with a
206 status is considered invalid and will result in an error.
cache.putthrows an error if… the response passed is a status of 206 Partial Content
And then it says:
Our implementation of the Cache API respects the following HTTP headers on the request passed to
Range: Results in a
206response if a matching response is found. Your Cloudflare cache always respects range requests, even if an
Accept-Rangesheader is on the response.
Isn’t this conflicting information?