3 ms·
Is WebTransport safe to bet on, and is there a risk it will be removed as HTTP/2 Server Push was? https://developer.chrome.com/blog/removing-push/ https://deve
by Eduard 4y ago
Is WebTransport safe to bet on, and is there a risk it will be removed as HTTP/2 Server Push was?
https://developer.chrome.com/blog/removing-push/ https://developer.chrome.com/blog/removing-push/
- kirbyfan64sos 4y agoHTTP/2 Server Push is largely just a "bonus" on HTTP/2, and removing it isn't exactly going to break a ton of things. Any chance you're thinking of server-side events, which are still supported?
- AgentME 4y agoYeah, in previous discussions I've seen about HTTP/2 Server Push, it seems like a lot of people are confused about what it was and thought it could be used to let a server spontaneously message a client (like you can do with websockets or server-side events). The only thing Server Push does is let a server respond to one request with multiple responses together ("I see you're requesting X, but I know clients who ask for X end up asking for Y shortly after, so here's Y with your X so you can cache it for later").
- SV_BubbleTime 4y agoI’m not a web guy, was Server Push replaced with / rolled back to a socket for server async communication?
- AgentME 4y agoServer push doesn't let a server spontaneously communicate with a client like a socket does. It's purely an optimization to let the server include in a response to the client extra resources for the client to cache for later, possibly making it so the client doesn't have to request them later. If server push doesn't happen, then it just means the client might not have certain resources pre-cached and will have to request them later.
- triyambakam 4y agoServer Sent* Events
- jeroenhd 4y agoIt's a shame server push wasn't used more often, it's such a simple and logical API to use (at least if you have the right reverse proxy installed). Add a Link header to the styles, fonts, javascript and whatever and your server will try to automatically push the resources necessary for rendering your page correctly to the client. Or configure your proxy to send the CSS/JS along with any file ending in .html, whatever you prefer.
- infensus 4y agoIt's simple until you take caching into account