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.

Ask HN: Please help Does HTTP/3 chain requests?

2 pointsby shanebelloneabout 2 years ago
Afternoon HN,<p>I may have rather serendipitously implemented HTTP&#x2F;3 support for a Flask-like CMS.<p>Does HTTP&#x2F;3 reduce server requests by concatenating multi-resource requests into a single request conveyed through a &quot;chained-path&quot;?<p>For example:<p>Loading example.com&#x2F;about requires loading style.css and favicon.ico.<p>HTTP&#x2F;2 would request example.com&#x2F;about, request style.css, request favicon.ico.<p>Does HTTP&#x2F;3: request example.com&#x2F;about &amp; style.css &amp; favicon.ico with a single request path similar to &quot;&#x2F;about&#x2F;style.css&#x2F;favicon.png&quot;?<p>Any insight would be appreciated. Thanks!

2 comments

DamonHDabout 2 years ago
AFAIK the semantics of HTTP&#x2F;2 and HTTP&#x2F;3 are the same, so no, but both &#x2F;2 and &#x2F;3 are able to multiplex these requests, with shared compressed header elements for example, onto a single underlying &#x27;connection&#x27;.
评论 #35865955 未加载
coreyp_1about 2 years ago
&gt; Does HTTP&#x2F;3: request example.com&#x2F;about &amp; style.css &amp; favicon.ico with a single request path similar to &quot;&#x2F;about&#x2F;style.css&#x2F;favicon.png&quot;?<p>No. HTTP&#x2F;3 can multiplex requests, but &quot;&#x2F;about&#x2F;style.css&#x2F;favicon.png&quot; is a single, valid path. If you are seeing requests for that (specifically), then it&#x27;s probably a bug.<p>As for HTTP&#x2F;3 itself, NGINX is probably providing that. Mobile connections (well, really any connection that is prone to packet loss) benefits greatly from HTTP&#x2F;3, which accounts for your speedup.<p>HTTP&#x2F;3 also will use UDP streams in addition to the single TCP stream of HTTP&#x2F;1.1 and HTTP&#x2F;2.
评论 #35866681 未加载