8000 Update controller.rst · symfony/symfony-docs@c623123 · GitHub
[go: up one dir, main page]

Skip to content

Commit c623123

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

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
@@ -898,7 +898,7 @@ method::
898898
{
899899
$response = $this->sendEarlyHints([
900900
new Link(rel: 'preconnect', href: 'https://fonts.google.com'),
901-
(new Link(href: '/style.css'))->withAttribute('as', 'stylesheet'),
901+
(new Link(href: '/style.css'))->withAttribute('as', 'style'),
902902
(new Link(href: '/script.js'))->withAttribute('as', 'script'),
903903
]);
904904

0 commit comments

Comments
 (0)
0