Skip to content

Commit

Permalink
Added an alternate to handling range-less get requests by disabling c…
Browse files Browse the repository at this point in the history
…aching

In response to feedback on PR 506 from martin thompson.
  • Loading branch information
craigpratt committed Mar 18, 2018
1 parent 64cf7c9 commit 7a01a2b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions draft-ietf-httpbis-rand-access-live.xml
Expand Up @@ -469,10 +469,12 @@ Content-Range: bytes 1020000-1254567/*
can be cached by intermediaries, since the Content-Range response header indicates
which portion of the representation is being returned in the response body. However
GET requests without a Range header cannot be cached since the first byte of the response
body can vary from request to request. So Range-less GET requests against shift-buffer
representations must indicate the response is non-cacheable. e,g, By including a
"Cache-control: no-cache" header in the response. See HTTP Caching (<xref target="RFC7234"/>)
for details on HTTP cache control.
body can vary from request to request. To ensure Range-less GET requests against
shift-buffer representations are not buffered, servers hosting a shift-buffer
representation should either not return a 200-level response (e.g. sending a
300-level redirect response with a URI that represents the current start of the
shift-buffer) or indicate the response is non-cacheable. See HTTP Caching
(<xref target="RFC7234"/>) for details on HTTP cache control.
</t>
</section>
</section>
Expand Down

0 comments on commit 7a01a2b

Please sign in to comment.