-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: header & stale-while-revalidate #913
Comments
It seems there was at least some kind of problem with the warning header: https://tools.ietf.org/html/draft-ietf-http-warning-00 Is it one of those things that was never actually implemented in practice? |
It is; we downgraded it to a SHOULD in RFC7234, and are removing it in the next revision of HTTP. See httpwg/http-core#139 |
BTW, if browser caches generated |
@whatwg/documentation given the upcoming changes to HTTP let's remove this from MDN or at least make it clear it's about to be obsolete? |
@annevk I added a note at the top of https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Warning to cover this; does this read OK? Also, the compat-data for Warning says that it is supported everywhere, but this thread and httpwg/http-core#139 make me think that is not entirely accurate. I wonder if I need to at least add a clarifying note in the data to. clarify how useful it actually is? |
If you have the equivalent of "blame" it'd be interesting to know why the person adding that data thought supported everywhere was applicable here. |
@annevk yeah, I'm not sure who did that. What do you think I should say in the compat-data. |
I'm not sure and it might be a more general problem, as browsers don't support https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset either. |
While investigating the history behind the
stale-while-revalidate
Cache-Control
option, I found that the original description in RFC5861 included the following:(I am not familiar with the story behind that RFC, but what I've gathered from talking informally to some folks is that it might have been geared more towards caching proxy providers and less towards the browser user agent use case.)
I believe that the warning header referred to there is the same thing as what's documented on MDN, and might look something along the lines of
Warning: 110 <warn-agent> Response is Stale [<warn-date>]
The Fetch Standard now includes a section about stale-while-revalidate responses, but there's no mention of the
Warning:
header in that text. Chrome and Firefox both have implementedstale-while-revalidate
, and in their implementations, there's noWarning:
header present on theResponse
object when a stale response is used.(https://glitch.com/edit/#!/s-w-r-demo is a really basic web app + server I put together to try this out.)
As a developer, I'd find information that would theoretically be present in a
Warning:
header to be useful, and I am curious whether its omission from the Fetch Standard was intentional or not. If it was intentional, and if RFC5861 is still relevant, then perhaps it should be marked as a willful violation?The text was updated successfully, but these errors were encountered: