From 255cf606be1f6ab582b7f5ef8f0a7781c6667ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Tue, 21 May 2024 19:20:40 +0200 Subject: [PATCH] [AssetMapper] Remove Cloudflare auto-minify links As Cloudflare is deprecating their auto-minify feature, let's remove it from the doc --- frontend/asset_mapper.rst | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/asset_mapper.rst b/frontend/asset_mapper.rst index dfc6a196430..1f5eae2a501 100644 --- a/frontend/asset_mapper.rst +++ b/frontend/asset_mapper.rst @@ -636,9 +636,7 @@ 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 and you can also - enable `auto minify`_ to further compress your assets (e.g. removing - whitespace and comments from JavaScript and CSS files). + 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 @@ -716,8 +714,8 @@ Does the AssetMapper Component Minify Assets? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Nope! Minifying or compressing assets *is* important, but can be -done by your web server or a service like Cloudflare. See -:ref:`Optimization ` for more details. +done by your web server. See :ref:`Optimization ` for +more details. Is the AssetMapper Component Production Ready? Is it Performant? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1152,7 +1150,6 @@ command as part of your CI to be warned anytime a new vulnerability is found. .. _class syntax: https://caniuse.com/es6-class .. _UX React Documentation: https://symfony.com/bundles/ux-react/current/index.html .. _UX Vue.js Documentation: https://symfony.com/bundles/ux-vue/current/index.html -.. _auto minify: https://developers.cloudflare.com/support/speed/optimization-file-size/using-cloudflare-auto-minify/ .. _Lighthouse: https://developers.google.com/web/tools/lighthouse .. _Tailwind: https://tailwindcss.com/ .. _BabdevPagerfantaBundle: https://github.com/BabDev/PagerfantaBundle