News for hackers. Stuff that matters.
Re:ES Modules Are Terrible by callahad on Wednesday June 14, 2023 @09:03AM (#36325258)
HTTP/2 Server Push is dead, and Chromium dropped support in 106: https://developer.chrome.com/blog/removing-push/
Re:ES Modules Are Terrible by azangru on Wednesday June 14, 2023 @09:34AM (#36325664)
There are early hints instead [0]. Aren't they sort of a replacement for http2 push?

[0] - https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103

Re:ES Modules Are Terrible by aseipp on Wednesday June 14, 2023 @09:57AM (#36326040)
The intended purpose of both Server Push and Early Hints is basically "Lower overall latency by letting the client know early on that there is more data it might need in subsequent requests." But in practice Early Hints are much better because only the client knows definitively if it needs the resource or not i.e. a 103 might say "you might need this file soon" but you already have it in cache.

Both approaches would still require the server to have some knowledge about the semantic request/response structure of client applications, though.