From b16b5673e831e6a0fd86367135e47509e6d58165 Mon Sep 17 00:00:00 2001 From: Arnaud Lemercier Date: Sun, 8 Dec 2024 19:23:50 +0100 Subject: [PATCH] Update controller.rst fix a problem to load "Style" (see : https://frankenphp.dev/docs/early-hints/) --- controller.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.rst b/controller.rst index 8eddd3788cc..3d4f84b4888 100644 --- a/controller.rst +++ b/controller.rst @@ -798,7 +798,7 @@ method:: { $response = $this->sendEarlyHints([ new Link(rel: 'preconnect', href: 'https://fonts.google.com'), - (new Link(href: '/style.css'))->withAttribute('as', 'stylesheet'), + (new Link(href: '/style.css'))->withAttribute('as', 'style'), (new Link(href: '/script.js'))->withAttribute('as', 'script'), ]);