@@ -5,10 +5,10 @@ Symfony provides native support (via the :doc:`WebLink component </components/we
55for managing ``Link `` HTTP headers, which are the key to improve the application
66performance when using HTTP/2 and preloading capabilities of modern web browsers.
77
8- ``Link `` headers are used in `HTTP/2 Server Push `_ and W3C's `Resource Hints `_
9- to push resources (e.g. CSS and JavaScript files) to clients before they even
10- know that they need them. WebLink also enables other optimizations that work
11- with HTTP 1.x:
8+ ``Link `` headers are used in `HTTP/2 Server Push `_ and W3C's `Resource Hints
9+ <https://www.w3.org/TR/resource-hints/> `_ to push resources (e.g. CSS and
10+ JavaScript files) to clients before they even know that they need them.
11+ WebLink also enables other optimizations that work with HTTP 1.x:
1212
1313* Asking the browser to fetch or to render another web page in the background;
1414* Making early DNS lookups, TCP handshakes or TLS negotiations.
@@ -50,7 +50,7 @@ To do that, first install the WebLink component:
5050
5151.. code-block :: terminal
5252
53- $ composer req weblink
53+ $ composer req web-link
5454
5555 Now, update the template to use the ``preload() `` Twig function provided by
5656WebLink:
@@ -161,7 +161,6 @@ You can also add links to the HTTP response directly from controllers and servic
161161 without requiring the entire Symfony framework.
162162
163163.. _`HTTP/2 Server Push` : https://tools.ietf.org/html/rfc7540#section-8.2
164- .. _`Resource Hints` : https://www.w3.org/TR/resource-hints/
165164.. _`Docker installer and runtime for Symfony` : https://github.com/dunglas/symfony-docker
166165.. _`preload` : https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content
167166.. _`the Preload specification` : https://www.w3.org/TR/preload/#server-push-(http/2)
0 commit comments