Minify CSS makes your stylesheets smaller by removing whitespace and comments. Combine CSS merges several stylesheets into fewer files, so the browser makes fewer requests. Minifying is safe for almost every site. Combining only helps in some setups, so read when to combine before you turn it on.
Available in: Powered Cache (free)
Where to find it: Powered Cache → File Optimization → CSS

How CSS optimization works #
Powered Cache works on stylesheets that themes and plugins load the WordPress way (enqueued stylesheets). It processes only .css files stored on your own site. It leaves these stylesheets untouched:
- Stylesheets from other domains, such as Google Fonts or a third-party widget.
- Files whose name already contains
.min(they are not minified again). - Stylesheets that match Excluded CSS Files.
- Inline
<style>blocks and<link>tags written directly into the theme templates.
Optimized files are created on the first request and saved in wp-content/cache/min/. Browsers may keep them for up to a year. They are served through the Powered Cache file optimizer (…/powered-cache/includes/file-optimizer.php??…), or through shorter /_static/??… URLs when File Optimizer Rewrite Rules are on. Clearing all caches also removes these files.
Set up CSS optimization #
- Go to Powered Cache → File Optimization.
- In the CSS group, turn on Minify CSS.
- Leave Combine CSS off unless your site still runs on HTTP/1.1 (see below).
- Click Save Settings, then clear all caches.
- Check a few page types (home page, a post, a page, the shop if you have one) in a private window.
Settings #
Minify CSS #
Reduces the size of each local stylesheet before delivery. Default: off. Apply Recommended Settings turns it on, unless Autoptimize, Perfmatters or PhastPress is active. Minifying does not change how your CSS works, so it is a good choice for nearly every site.
Combine CSS #
Merges local stylesheets into fewer files. Default: off. Recommended setup keeps it off.
Powered Cache keeps the original order. It merges stylesheets that follow each other and share the same media type. A stylesheet that cannot be combined (an external or excluded file, for example) stays in its place and starts a new group, so you may still see several combined files on a page. Inline styles attached to a stylesheet are printed right after the combined file. When Minify CSS is also on, the combined file is minified too.
Excluded CSS Files #
Keeps matching stylesheets out of both minifying and combining. Default: empty. Enter one rule per line. Each rule is compared with the stylesheet URL, and a rule matches when it appears anywhere in the URL.
| Rule | Matches |
|---|---|
style.css | Every stylesheet whose URL contains style.css. |
/wp-content/plugins/my-slider/* | Every stylesheet of that plugin. * matches any text. |
/themes/(child|parent)/style.css | A regular expression. Lines with regex characters are used as regular expressions. |
A line that is not a valid regular expression is matched as plain text, and the settings screen points it out. Exclude a file when it breaks after minifying or combining, or when it must load separately.
When combining helps, and when it hurts #
Combining was designed for HTTP/1.1, where a browser opens only a few connections to a site and every extra file waits in line. Fewer files meant a faster page.
Most hosts now use HTTP/2 or HTTP/3. These protocols download many files over one connection at the same time, so the number of files matters much less. Combining then mainly brings drawbacks:
- Worse cache reuse: pages that load different sets of stylesheets get different combined files. A visitor who moves from the home page to a post downloads mostly the same CSS again, under a new file name.
- Cache busting hits the whole bundle: the combined URL contains the modification time of its newest file. When one plugin updates its stylesheet, visitors download the whole bundle again, not just that file.
- Larger blocking file: the browser must download the complete bundle before it can render the page.
| Your setup | Recommendation |
|---|---|
| HTTP/2 or HTTP/3 (most hosts, and every site behind Cloudflare or a modern CDN) | Minify CSS on, Combine CSS off. |
| HTTP/1.1 only, many small stylesheets | Minify CSS on, try Combine CSS and measure. |
| Using Critical CSS or Remove Unused CSS (Premium) | Minify CSS on. Combining adds little. |
To check your protocol, open the browser developer tools, go to the Network tab and show the Protocol column. h2 means HTTP/2 and h3 means HTTP/3.
Turn off CSS optimization for one page #
In the post editor, open the Powered Cache panel and check Disable CSS optimization. That post is then served without CSS minifying and combining. The option appears when Minify CSS or Combine CSS is on. See Exclude a page from the cache for all per-post options.
Troubleshooting #
The layout looks broken #
- Turn off Combine CSS, clear all caches and check again. Combining causes most CSS problems.
- If the problem stays, turn off Minify CSS. If that fixes it, turn it back on and add the stylesheet that breaks to Excluded CSS Files.
- Compare with the unprocessed page by adding
?nopoweredcache=1to the URL.
More steps are in Broken layout after optimization.
CSS changes do not show up #
If you edit a stylesheet file directly, for example in a child theme, clear all caches with Purge All Cache in the admin bar so the optimized copies are rebuilt. Then reload the page with a hard refresh (Ctrl+Shift+R or Cmd+Shift+R).
Optimized files return an error #
If /_static/ URLs return a 404 error, your server does not apply the rewrite rules. Turn off File Optimizer Rewrite Rules or add the rules to your server configuration.
For developers #
Useful filters: powered_cache_fo_excluded_css_files (add exclusion rules), powered_cache_fo_css_do_concat (decide per stylesheet handle whether to combine) and powered_cache_fo_disable_css_minify. See the hooks reference.