From 5bcde9cdbd04cdef21300506c0cc5bd21c23be12 Mon Sep 17 00:00:00 2001 From: moshkov-konstantin Date: Fri, 1 Nov 2024 18:33:23 +0300 Subject: [PATCH] Update asset_mapper.rst --- frontend/asset_mapper.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/asset_mapper.rst b/frontend/asset_mapper.rst index ad5b78b5e13..435524a26ae 100644 --- a/frontend/asset_mapper.rst +++ b/frontend/asset_mapper.rst @@ -639,7 +639,7 @@ To make your AssetMapper-powered site fly, there are a few things you need to do. If you want to take a shortcut, you can use a service like `Cloudflare`_, which will automatically do most of these things for you: -- **Use HTTP/2**: Your web server should be running HTTP/2 (or HTTP/3) so the +- **Use HTTP/2**: Your web server should be running HTTP/2 or HTTP/3 so the browser can download assets in parallel. HTTP/2 is automatically enabled in Caddy and can be activated in Nginx and Apache. Or, proxy your site through a service like Cloudflare, which will automatically enable HTTP/2 for you. @@ -647,7 +647,6 @@ which will automatically do most of these things for you: - **Compress your assets**: Your web server should compress (e.g. using gzip) your assets (JavaScript, CSS, images) before sending them to the browser. This is automatically enabled in Caddy and can be activated in Nginx and Apache. - In Cloudflare, assets are compressed by default. - **Set long-lived cache expiry**: Your web server should set a long-lived ``Cache-Control`` HTTP header on your assets. Because the AssetMapper component includes a version