Comments (9)
I think Mark's suggestion is right. I would characterize HTTP/1.0 as ambiguous and that causes revalidation deadlocks. Its somewhat worse that this pattern needlessly shows up in HTTP/1.1 as well.
I think the text in 3.1 should change to:
A response message is considered complete when all of the octets indicated by its framing are available. A message that is not explicitly framed (e.g., when a HTTP/1.1 message does not use Content-Length or Transfer-Encoding for delimitation; see [Messaging], Section 6.3) SHOULD be considered incomplete.
from http-core.
Also, in the sentence:
A cache must not send a partial response to a client without explicitly marking it as such using the 206 (Partial Content) status code.
...I think s/partial/incomplete/, based on context. Any concerns there?
from http-core.
In 4.3.1. Sending a Validation Request, add:
A cache MUST NOT send validation requests for stored responses that are incomplete; see (ref to 3.1. Storing Incomplete Responses).
from http-core.
3.1 currently has:
A response message is considered complete when all of the octets indicated by the message framing ([Messaging]) are received prior to the connection being closed.
Observations:
- the reference really should be more specific and go to "6.3. Message Body Length"
- is this clear enough for protocols other than HTTP/1.1?
from http-core.
Referring to h1-messaging 6.3 would make this specific to H1. Referring to 4.3.1 in caching keeps it protocol-generic. If another version doesn't crisply define what's an incomplete message, we can deal with that separately.
from http-core.
I think the text in 3.1 should change to:
A response message is considered complete when all of the octets indicated by its framing are available. A message that is not explicitly framed (e.g., when a HTTP/1.1 message does not use Content-Length or Transfer-Encoding for delimitation; see [Messaging], Section 6.3) SHOULD be considered incomplete.
from http-core.
This seems reasonable. It's also related to quicwg/base-drafts#1972, asking whether servers can wait for end-of-stream to consider a message complete in HTTP/3. (Proposal in quicwg/base-drafts#2003 is "no, you can't.")
from http-core.
No, HTTP/1.0 is consistently optimistic. If the server desires more rigor, it can do the work to supply the framing that would indicate an error occurred. When it fails to do so, it is deliberately choosing to maximize performance over correctness. Hence, the assumption has always been that a close-delimited message is always complete.
from http-core.
Thinking on this for a while, I think MAY might be more appropriate than SHOULD here; I have a strong suspicion that most caches will not consider a close-delimited response as incomplete.
I could test it, I suppose.
from http-core.
Related Issues (20)
- RFC 9110 does change requirements from RFC 2818 HOT 1
- Definition of status code 308 should mention that request method MUST NOT be changed
- multiple locations for 301/308 redirects? HOT 5
- how to handle C-L for unknown methods HOT 3
- incorrect media type weight in example
- A Single LF Line Terminator in RFC 9112 HOT 4
- OWS in ranges-specifier missing(?)
- charset names are used in Accept-Charset, not Accept-Encoding HOT 1
- http 1.1 message body (section 6) and get/head/delete semantics HOT 1
- If-Range distinguishing entity-tag from HTTP-date can be more refined HOT 1
- Missing changes - determining target URI authority
- absolute-form explanations are a bit confusing
- Media Type message/http requirements HOT 1
- Semantics of informational responses. HOT 2
- Caching: Vary, Conneg, and choosing the latest response HOT 1
- Caching: give caches more flexibility to calculate Age
- If-Match and caching intermediaries HOT 1
- rfc 9112: incorrect link in ABNF
- Clarification on messages with invalid Content-Length and valid Transfer-Encoding HOT 8
- RFC 9110, section 8.6: Incorrect use of the word "exception."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-core.