Skip to content

Update asset_mapper.rst #20366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

moshkov-konstantin
Copy link
Contributor

No description provided.

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.

- **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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove this?

Cloudflare still compress by default (in gzip, brotli or zstandard) all web assets and more. See https://developers.cloudflare.com/speed/optimization/content/compression/

What Cloudflare remove was the minification of assets. See https://community.cloudflare.com/t/deprecating-auto-minify/655677 But we already removed that from the Symfony Docs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While merging, I reverted this change.

@javiereguiluz javiereguiluz changed the base branch from 7.1 to 6.4 December 6, 2024 07:34
@javiereguiluz javiereguiluz merged commit 6bb8e34 into symfony:6.4 Dec 6, 2024
3 checks passed
@javiereguiluz javiereguiluz added this to the 6.4 milestone Dec 6, 2024
@javiereguiluz
Copy link
Member

This is now merged. Thanks @moshkov-konstantin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants