@@ -611,7 +611,7 @@ To make your AssetMapper-powered site fly, there are a few things you need to
611
611
do. If you want to take a shortcut, you can use a service like `Cloudflare `_,
612
612
which will automatically do most of these things for you:
613
613
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
615
615
browser can download assets in parallel. HTTP/2 is automatically enabled in Caddy
616
616
and can be activated in Nginx and Apache. Or, proxy your site through a
617
617
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:
625
625
whitespace and comments from JavaScript and CSS files).
626
626
627
627
- **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
630
630
to a very long time in the future (e.g. 1 year). This isn't automatic in
631
631
any web server, but can be easily enabled.
632
632
633
633
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.
635
635
636
636
.. _performance-preloading :
637
637
0 commit comments