Skip to content

Commit 630007e

Browse files
committed
minor #20458 FIX : Early Hint 103 - fix a problem to load "Style" (arnolem)
This PR was submitted for the 7.2 branch but it was merged into the 6.4 branch instead. Discussion ---------- FIX : Early Hint 103 - fix a problem to load "Style" fix a problem to load "Style" (see : https://frankenphp.dev/docs/early-hints/) Commits ------- b16b567 Update controller.rst
2 parents d03ce88 + b16b567 commit 630007e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ method::
798798
{
799799
$response = $this->sendEarlyHints([
800800
new Link(rel: 'preconnect', href: 'https://fonts.google.com'),
801-
(new Link(href: '/style.css'))->withAttribute('as', 'stylesheet'),
801+
(new Link(href: '/style.css'))->withAttribute('as', 'style'),
802802
(new Link(href: '/script.js'))->withAttribute('as', 'script'),
803803
]);
804804

0 commit comments

Comments
 (0)