Skip to content

Commit 5bcde9c

Browse files
moshkov-konstantinjaviereguiluz
authored andcommitted
Update asset_mapper.rst
1 parent 2675832 commit 5bcde9c

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
@@ -639,15 +639,14 @@ To make your AssetMapper-powered site fly, there are a few things you need to
639639
do. If you want to take a shortcut, you can use a service like `Cloudflare`_,
640640
which will automatically do most of these things for you:
641641

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

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

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

0 commit comments

Comments
 (0)