Skip to content

Commit 9f83387

Browse files
angelampcostaOxyjun
authored andcommitted
Adds info about client side range request (cloudflare#23310)
* Adds info about client side range request * Update src/content/docs/cache/concepts/default-cache-behavior.mdx Co-authored-by: Jun Lee <[email protected]> * Apply suggestions from code review * Update src/content/docs/cache/concepts/default-cache-behavior.mdx --------- Co-authored-by: Jun Lee <[email protected]>
1 parent f0b511b commit 9f83387

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/content/docs/cache/concepts/default-cache-behavior.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ If both `max-age` and an `Expires` header are set, `max-age` will be used by Clo
2929

3030
When [Origin Cache Control](/cache/concepts/cache-control/) is enabled on an Enterprise customer’s website, it indicates that Cloudflare should strictly respect `Cache-Control` directives received from the origin server. Free, Pro and Business customers have this feature enabled by default. For a list of directives and behaviors when Origin Cache-Control is enabled or disabled, refer to [Cache-Control directives](/cache/concepts/cache-control/#cache-control-directives).
3131

32+
## Client side range requests
33+
34+
Clients can send range requests to be served from the cache using the `Range` header. Note that:
35+
36+
- If the origin response includes a `Content-Length` header, then the specified byte range will be returned with an HTTP 206 response.
37+
- If the origin response does not include the `Content-Length` header, the cache will return the full content with an HTTP 200 response.
38+
3239
## Default cached file extensions
3340

3441
Cloudflare only caches based on file extension and not by MIME type. The Cloudflare CDN does not cache HTML or JSON by default. Additionally, by default Cloudflare caches a website's robots.txt.

0 commit comments

Comments
 (0)