Skip to content

Commit b16b567

Browse files
arnolemjaviereguiluz
authored andcommitted
Update controller.rst
fix a problem to load "Style" (see : https://frankenphp.dev/docs/early-hints/)
1 parent d03ce88 commit b16b567

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)