๐Ÿ“ฐ Barefoot Blog
font1
โ† All posts

Why there is no fragment negotiation

2026-06-18 ยท post 2 of 10 ยท #backend#perf
โฑ 0.0s on this page
Now playing ยท Ambient Focus0.0s

A "smaller" fragment response only removes the shell markup, which gzip already compresses to almost nothing โ€” while making the same URL return two different bodies, so it needs a Vary header that fragments the cache.

It would also force every fragment to re-include its island <script type="module"> tags and <title>, or navigated-to islands go inert.

The cost that actually matters is the round-trip, not the byte count โ€” so the effort goes into prefetch, and the server stays a plain, cacheable HTML server.