Skip to content

Conversation

@bsmth
Copy link
Member

@bsmth bsmth commented Oct 1, 2024

HTTP/2 Server Push is being unshipped everywhere. I'm checking everywhere we mention "Server Push" to make sure we're not recommending it anymore.

https://groups.google.com/a/mozilla.org/g/dev-platform/c/vU9hJg343U8/m/4cZsHz7TAQAJ

Related issues and pull requests:

@bsmth bsmth requested review from a team as code owners October 1, 2024 13:17
@bsmth bsmth requested review from hamishwillee and removed request for a team October 1, 2024 13:17
@github-actions github-actions bot added Content:Learn Learning area docs Content:HTTP HTTP docs Content:Glossary Glossary entries labels Oct 1, 2024
@bsmth bsmth mentioned this pull request Oct 1, 2024
8 tasks
@github-actions github-actions bot added the size/s [PR only] 6-50 LoC changed label Oct 1, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2024

Preview URLs

External URLs (27)

URL: /en-US/docs/Glossary/HTTP_2
Title: HTTP/2


URL: /en-US/docs/Web/HTTP/Headers
Title: HTTP headers


URL: /en-US/docs/Web/HTTP/Evolution_of_HTTP
Title: Evolution of HTTP

(comment last updated: 2024-10-22 07:30:48)

@github-actions github-actions bot added the merge conflicts 🚧 [PR only] label Oct 1, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2024

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot removed the merge conflicts 🚧 [PR only] label Oct 2, 2024
For now, there are a few things to keep in mind:

- Usually only _clients_ make HTTP requests, and only to _servers_. Servers _respond_ to a _client_'s HTTP request. A server can also populate data into a client cache, in advance of it being requested, through a mechanism called [server push](https://en.wikipedia.org/wiki/HTTP/2_Server_Push).
- _Clients_ make HTTP requests to _servers_. Servers _respond_ to a _client_'s HTTP request.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Losing the information about server push good. I don't think there are other HTTP mechanisms for a server to push information to a client without their first being a request.

Though FYI it is possible for a server to include information in a response that was not requested which "somewhat" does the same thing (i.e. server provides a hint to client in any response that is unrelated to the request, triggering behaviour that looks a bit like a push). Upshot not worth mentioning here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I think for the target audience of this doc, we can keep it straightforward.

Copy link
Collaborator

@hamishwillee hamishwillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of "to my taste" changes. Approving so you can merge or accept if you like.

Note that I only reviewed the changes that were made - I haven't checked if there are other mentions of server push that should be updated.

@bsmth
Copy link
Member Author

bsmth commented Oct 22, 2024

Thanks, Hamish!

I haven't checked if there are other mentions of server push that should be updated.

I can't find any through code search, so I believe this is everything. I'll merge shortly 👍🏻

@bsmth bsmth merged commit bd48972 into mdn:main Oct 22, 2024
@bsmth bsmth deleted the 36116-http2-push-content branch October 22, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Glossary Glossary entries Content:HTTP HTTP docs Content:Learn Learning area docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants