Support HTTP/2 Server Push #828
karpetrosyan
started this conversation in
Ideas
Replies: 1 comment
-
Ah yes, interesting suggestion. Although... Chrome have now removed HTTP/2 Server Push support, essentially in favour of the "103 Early Hints" status code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HTTP/2 Server push is a feature of HTTP/2 and HTTP/3 that allows the server to send responses before the client requests them. Because the response can be taken from the cache, it can significantly reduce response time.
It is especially useful when the server predicts which resource the client will request the next time.
You can see the wiki about the http/2 server push for more information.
HTTP Core
does support the HTTP2 protocol, but it cannot support server push mechanisms because it also requires RFC 9111 implementation and some storage logic, which is not what we want to see in theHTTP Core
library, so it should just provide some API to do that.Here is an example of how it can be implemented.
The obvious question here is: Why should we support this?
There are a few reasons why we should support this.
Beta Was this translation helpful? Give feedback.
All reactions