TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

HTTP2 Push: The details

19 pointsby inianover 8 years ago

2 comments

merbover 8 years ago
<p><pre><code> Instead, the official method is that the browser can signal the server to cancel a push with a so-called RST_STREAM reply to a PUSH_PROMISE. </code></pre> while this sounds reasonable it&#x27;s actually strange. Basically a PUSH_PROMISE has two stream id&#x27;s. One with the stream it is sent over and one with the promised stream. Actually the RST should target the promised stream.<p>another thing which his article never actually mentions is when to send the actual PUSH_PROMISE. And the problem extends further that the most reasonable moment to send it is before the actual html, but the DATA (should not always as explained in his article) sent directly before the actual html. This actually makes it really hard to have a good implementation since you actually need lots of state and priorities to get the best behavior.<p>I&#x27;m extremly skeptical of http&#x2F;2. we go from a stateless protocol to a extremly stateful one, just to fix some things, but we raise a lot of new ones.
wamplerover 8 years ago
Good luck reading localStorage server-side!