Skip to content

Commit 035deff

Browse files
committed
Readded the link
1 parent 9f81cae commit 035deff

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

weblink.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Symfony provides native support (via the :doc:`WebLink component </components/we
55
for managing ``Link`` HTTP headers, which are the key to improve the application
66
performance 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-
<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:
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.
@@ -99,7 +99,7 @@ issuing an early separate HTTP request, use the ``nopush`` option:
9999
Resource Hints
100100
--------------
101101

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
103103
resources should be downloaded, preprocessed or connected to first.
104104

105105
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
160160
without requiring the entire Symfony framework.
161161

162162
.. _`HTTP/2 Server Push`: https://tools.ietf.org/html/rfc7540#section-8.2
163+
.. _`Resource Hints`: https://www.w3.org/TR/resource-hints/
163164
.. _`Docker installer and runtime for Symfony`: https://github.com/dunglas/symfony-docker
164165
.. _`preload`: https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content
165166
.. _`the Preload specification`: https://www.w3.org/TR/preload/#server-push-(http/2)

0 commit comments

Comments
 (0)