Skip to content

Commit bee8104

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [AssetMapper] Shortening "Optimizing Performance"
2 parents 77f00ee + b3534c7 commit bee8104

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/asset_mapper.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ To make your AssetMapper-powered site fly, there are a few things you need to
611611
do. If you want to take a shortcut, you can use a service like `Cloudflare`_,
612612
which will automatically do most of these things for you:
613613

614-
- **Use HTTP/2**: Your web server **must** be running HTTP/2 (or HTTP/3) so the
614+
- **Use HTTP/2**: Your web server should be running HTTP/2 (or HTTP/3) so the
615615
browser can download assets in parallel. HTTP/2 is automatically enabled in Caddy
616616
and can be activated in Nginx and Apache. Or, proxy your site through a
617617
service like Cloudflare, which will automatically enable HTTP/2 for you.
@@ -625,13 +625,13 @@ which will automatically do most of these things for you:
625625
whitespace and comments from JavaScript and CSS files).
626626

627627
- **Set long-lived Expires headers**: Your web server should set long-lived
628-
Expires headers on your assets. Because the AssetMapper component includes a version
629-
hash in the filename of each asset, you can safely set the Expires header
628+
``Expires`` HTTP headers on your assets. Because the AssetMapper component includes a version
629+
hash in the filename of each asset, you can safely set the ``Expires`` header
630630
to a very long time in the future (e.g. 1 year). This isn't automatic in
631631
any web server, but can be easily enabled.
632632

633633
Once you've done these things, you can use a tool like `Lighthouse`_ to
634-
validate the performance of your site!
634+
check the performance of your site.
635635

636636
.. _performance-preloading:
637637

0 commit comments

Comments
 (0)