@@ -5,10 +5,10 @@ Symfony provides native support (via the :doc:`WebLink component </components/we
5
5
for managing ``Link `` HTTP headers, which are the key to improve the application
6
6
performance when using HTTP/2 and preloading capabilities of modern web browsers.
7
7
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:
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:
12
12
13
13
* Asking the browser to fetch or to render another web page in the background;
14
14
* Making early DNS lookups, TCP handshakes or TLS negotiations.
@@ -99,7 +99,7 @@ issuing an early separate HTTP request, use the ``nopush`` option:
99
99
Resource Hints
100
100
--------------
101
101
102
- Resource Hints are used by applications to help browsers when deciding which
102
+ ` Resource Hints `_ are used by applications to help browsers when deciding which
103
103
resources should be downloaded, preprocessed or connected to first.
104
104
105
105
The WebLink component provides the following Twig functions to send those hints:
@@ -160,6 +160,7 @@ You can also add links to the HTTP response directly from controllers and servic
160
160
without requiring the entire Symfony framework.
161
161
162
162
.. _`HTTP/2 Server Push` : https://tools.ietf.org/html/rfc7540#section-8.2
163
+ .. _`Resource Hints` : https://www.w3.org/TR/resource-hints/
163
164
.. _`Docker installer and runtime for Symfony` : https://github.com/dunglas/symfony-docker
164
165
.. _`preload` : https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content
165
166
.. _`the Preload specification` : https://www.w3.org/TR/preload/#server-push-(http/2)
0 commit comments