php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #78487 Add support for HTTP 103 Early Hint
Submitted: 2019-09-03 13:39 UTC Modified: 2019-09-03 14:34 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: nicolas dot grekas+php at gmail dot com Assigned:
Status: Suspended Package: *General Issues
PHP Version: Next Minor Version OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nicolas dot grekas+php at gmail dot com
New email:
PHP Version: OS:

 

 [2019-09-03 13:39 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-03 14:34 UTC] requinix@php.net
-Status: Open +Status: Suspended
 [2019-09-03 14:34 UTC] 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.
 [2023-01-12 02:15 UTC] kenjibaheux at chromium dot org
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 18:01:28 2024 UTC