Req #78487 [Com]: Add support for HTTP 103 Early Hint

From: Date: Thu, 12 Jan 2023 02:15:16 +0000
Subject: Req #78487 [Com]: Add support for HTTP 103 Early Hint
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243419@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78487&edit=1 ID: 78487 Comment by: kenjibaheux at chromium dot org Reported by: nicolas dot grekas+php at gmail dot com Summary: Add support for HTTP 103 Early Hint Status: Suspended Type: Feature/Change Request Package: *General Issues PHP Version: Next Minor Version Block user comment: N Private report: N New Comment: Hi, I'm part of the team that added support for Early Hints in Chrome. Given that we've seen great speed improvements from specific partners, we were looking into what it would take to integrate Early Hints into popular CMS to speed up the web at scale. Unfortunately, integrating Early Hints doesn't look possible for CMS built on top of PHP. It appears that PHP assumes that only one response can be sent back for a given request which is no longer true with Early Hints in the mix... I noted Requinix's concern about the lack of support in popular web servers. However, from a quick look, it seems that Apache 2.4 (current stable) has had support for Early Hints since 2016 [1]. Let me know if I misunderstood the issue, or how else I can help folks assess the opportunity. [1]: httpd.apache.org/docs/2.4/howto/http2.html#earlyhints Previous Comments: ------------------------------------------------------------------------ [2019-09-03 14:34:39] requinix@php.net The 103 Early Hints RFC is still experimental. If you'd like built-in support for this then you should bring up the subject on the internals mailing list, given that it goes beyond the bounds of the simple header management tools that PHP currently provides. https://www.php.net/mailing-lists.php But this sounds like something that will need web server support first, and some cursory searches don't show that to be the case yet. ------------------------------------------------------------------------ [2019-09-03 13:39:12] nicolas dot grekas+php at gmail dot com Description: ------------ HTTP 103 Early Hint is described in RFC8297 https://tools.ietf.org/html/rfc8297#section-2, see also https://evertpot.com/http/103-early-hints for explanations. PHP cannot generate such hints, while it would be useful in practice. Could a function be added to send them? send_early_hints($headers); or similar ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78487&edit=1

« previous php.bugs (#243419) next »