Cloudflare Auto Minify is deprecated, so the old instructions to enable JavaScript, CSS, and HTML checkboxes are no longer a current setup guide. Cloudflare lists August 5, 2024 as the deprecation date for Auto Minify and its related API endpoints.
If you arrived here looking for the missing toggle, the useful next step is to review how your website produces its files. We recommend handling minification in a maintained build process or a suitable existing site-optimization layer, then checking the delivered result. Cloudflare compression remains a separate feature rather than a replacement minifier.
What Auto Minify did, and what changed
Minification removes unnecessary characters from source files while aiming to preserve their behavior. MDN describes removing material such as whitespace and comments and, where applicable, shortening variable names. It is a code transformation, not an image optimizer, cache setting, or guarantee that a page will become fast.
The earlier article described a Cloudflare dashboard path through Speed and content optimization. Do not spend time trying to reproduce those old screens or automate the deprecated minify API to enable the feature. The feature's status has changed, while the underlying task of delivering efficient HTML, CSS, and JavaScript remains relevant.
We also removed the earlier percentage-saving claims. There is no universal reduction that every website should expect. A file that is already minified is a different starting point from readable development output. Report your own before-and-after measurements rather than borrowing a fixed saving from a general tutorial.
If an older zone still has legacy Auto Minify behavior enabled, Cloudflare also maintains a current API guide for checking and turning it off. That is a migration and troubleshooting route, not a recommendation to enable the deprecated feature. Follow its token-permission requirements and verify the resulting settings before changing another optimization layer.
Need the domain first?
Runs the same live check as the front page. If it is taken we will show you when it expires.
Minification, compression, and caching are different
Minification changes the source representation of a resource. HTTP compression encodes a response for transfer, and the receiving client decodes it. Caching allows a stored response to be reused according to its policy. These can work together, but they are not interchangeable controls.
A minified script can also be transferred using Brotli or Gzip. Conversely, a compressed response does not prove that the underlying JavaScript has been minified. Inspect the actual file and its transfer headers separately rather than interpreting one network label as evidence for both processes.
Our Cloudflare compression guide explains the transfer layer, while our Cloudflare cache overview explains edge storage. The distinction is especially useful when a performance tool reports one issue but a dashboard setting addresses another.

Start by checking what the site already serves
- Open a representative live page and inspect its CSS and JavaScript requests in the browser network panel.
- Identify which system owns each file: your application build, theme, plugin, or an external provider. Avoid editing generated files without locating their source.
- Inspect the response body. A compact production file may already be minified even when its filename does not tell you so.
- Record the current URLs and response headers, including cache policy and content encoding, so later comparisons refer to the same resource.
- Check your existing build or optimization settings before adding another layer that transforms the same assets.
Keep readable source files in the development workflow. The goal is to deliver suitable production output, not to make future maintenance difficult by replacing the only editable copy with compressed-looking code.
For build-based sites, use the production build
If your project uses Vite, its official build-options reference documents JavaScript minification through build.minify and CSS minification through build.cssMinify. It also documents build.sourcemap for generating production source maps. Follow the documentation for your installed tool version rather than copying old assumptions about its default minifier.
A practical migration is to review the existing production configuration, generate a candidate build, deploy it to a test environment, and inspect the generated CSS and JavaScript. Do not enable every optimization flag at once. Separate minification from unrelated changes such as dependency upgrades or application rewrites.
Vite is an example for projects already using a build pipeline, not a reason to move a conventional WordPress site to a new architecture. Use the system that owns your assets and verify its supported production workflow. Cloudflare can still deliver those output files without being responsible for minifying them.
For WordPress, avoid duplicating transformations
On a WordPress site, inventory the theme, plugins, hosting optimizations, and any deployment tooling before choosing a new minification layer. If one of them already generates compact assets, adding another transformer may be unnecessary. We do not provide plugin-specific switches here because those require that plugin's current documentation and compatibility checks.
Test important page types, not only a simple article. Include menus, forms, interactive elements, and any transaction flow the site actually has. Check both signed-in and public views where they differ. These are verification steps, not a claim that a particular plugin will break or that one combination is always safe.
Maintain a way to turn off the new optimization and restore the previous output. If a feature stops working, revert that change before making additional adjustments. An undo path is more useful than an unsupported promise that minification never affects functionality.
Publish changed files without confusing caches
Review how asset URLs change when output changes. Our browser cache TTL guide explains why a browser may continue using a fresh cached resource even after a server-side change. Purging an edge cache is not the same as clearing visitors' browser caches.
After deployment, inspect the public responses again. Confirm the new file is delivered, examine its content, and test the page's behavior. Compare transfer sizes under equivalent conditions rather than comparing an uncached development response against a cached production response.
If you are planning the domain for a separate test site, our domain name generator can help explore naming ideas. It is not a code-performance test; use your build output and browser diagnostics to judge this migration.
Auto Minify FAQ
Can the old Cloudflare enablement steps still be recommended?
No. They describe a deprecated feature and should not be treated as the current dashboard procedure.
Is Brotli the new name for Auto Minify?
No. Brotli is transfer compression. Minification is a source-code transformation.
Must every file be transformed again?
No. First identify existing production output and test whether an additional change serves a real need.