Skip to content

Commit 345b954

Browse files
Update asset_mapper.rst
1 parent 3e2d1e6 commit 345b954

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/asset_mapper.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,15 +626,14 @@ To make your AssetMapper-powered site fly, there are a few things you need to
626626
do. If you want to take a shortcut, you can use a service like `Cloudflare`_,
627627
which will automatically do most of these things for you:
628628

629-
- **Use HTTP/2**: Your web server should be running HTTP/2 (or HTTP/3) so the
629+
- **Use HTTP/2**: Your web server should be running HTTP/2 or HTTP/3 so the
630630
browser can download assets in parallel. HTTP/2 is automatically enabled in Caddy
631631
and can be activated in Nginx and Apache. Or, proxy your site through a
632632
service like Cloudflare, which will automatically enable HTTP/2 for you.
633633

634634
- **Compress your assets**: Your web server should compress (e.g. using gzip)
635635
your assets (JavaScript, CSS, images) before sending them to the browser. This
636636
is automatically enabled in Caddy and can be activated in Nginx and Apache.
637-
In Cloudflare, assets are compressed by default.
638637

639638
- **Set long-lived cache expiry**: Your web server should set a long-lived
640639
``Cache-Control`` HTTP header on your assets. Because the AssetMapper component includes a version

0 commit comments

Comments
 (0)