Skip to content

Commit 6bb8e34

Browse files
committed
minor #20366 Update asset_mapper.rst (moshkov-konstantin)
This PR was submitted for the 7.1 branch but it was merged into the 6.4 branch instead. Discussion ---------- Update asset_mapper.rst <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 5bcde9c Update asset_mapper.rst
2 parents 2675832 + 5bcde9c commit 6bb8e34

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)