Best WP Rocket Settings - What to Turn On for Blogs, Stores and Builders (2026)

WP Rocket's defaults are safe, but the biggest gains come from a few settings that are off when you install it. Here's what we'd turn on, section by section, and how to test each change.

The Quick Configuration

If you just want the short version, these are the settings we'd enable on most sites after activation. Test your key pages after each group.

The rest of this guide explains each setting, when to leave it alone, and the exceptions for stores, builders and managed hosts.

What WP Rocket Does Without Any Settings

Illustration for What WP Rocket Does Without Any Settings on the Best WP Rocket Settings page, showing a steps diagram

Before touching anything, it helps to know what's already running. Recent versions of WP Rocket apply a group of optimizations automatically, with no setting to switch on or off.

Optimizations WP Rocket applies automatically
Automatic FeatureWhat It Does
Page cache, including mobile cacheServes saved HTML copies to desktop and mobile visitors
Optimize critical imagesFinds the LCP and above-the-fold images and keeps them out of lazy loading
Automatic lazy renderingLets the browser skip rendering content that isn't visible yet
Preconnect to external domainsAdds early connections for third-party domains each page needs
Browser caching and GZIPTells browsers to keep static files, and compresses text files
Google Fonts optimizationOptimizes how Google Fonts files load
WooCommerce cart fragments cacheReduces the cost of WooCommerce's cart fragment requests

That's why older guides that talk about "mobile cache" toggles or DNS prefetch fields may not match what you see. Those jobs are now handled for you.

Before You Change Anything

Every site has a different theme, plugins and content, so the "best" settings are always a starting point. Two habits make tuning painless.

First, test before and after. Run PageSpeed Insights on your homepage, a typical post and your heaviest template, and save the results. Rocket Insights inside WP Rocket can track these pages for you, and your homepage is added automatically on first activation.

Second, change one group at a time. If you enable ten settings at once and the mobile menu breaks, you won't know which one caused it. Enable a group, check your pages in a private window, then move on.

Page Optimization: JavaScript and CSS

This is where the biggest gains live, and also where most issues come from. Take it in two passes: CSS first, then JavaScript.

CSS Settings

Turn on Minify CSS files. It's low risk and removes whitespace and comments.

For Optimize CSS delivery, choose Remove Unused CSS. It generates a slimmer stylesheet for each page and usually delivers the largest improvement to First Contentful Paint and LCP, especially on builder sites. The alternative, Load CSS asynchronously, generates critical CSS instead. Use it as a fallback if Remove Unused CSS causes styling problems you can't solve with the safelist.

Both CSS methods are cloud features: WP Rocket's service generates the CSS, and your site stores and serves it. They need an active license. After enabling Remove Unused CSS, give it time to process your pages, then check interactive elements: menus, tabs, accordions and popups. If a style is missing, add its selector to the CSS safelist. Our unused CSS guide explains how to find the right selector.

JavaScript Settings

Turn on Minify JavaScript files and Load JavaScript deferred. Deferring removes scripts from the render-blocking path while keeping their order intact.

Then turn on Delay JavaScript execution. This holds non-essential scripts until the visitor interacts, which is usually the biggest single improvement for Total Blocking Time and INP. Use the one-click exclusions for any popular plugins and themes listed in the panel, since they're pre-tested to stay working.

If something misbehaves, such as a slider that doesn't show its first slide or a menu that doesn't open on the first tap, add that script to the exclusions rather than disabling the feature. Our Delay JavaScript exclusions guide covers the common cases.

We'd leave Combine JavaScript files off. On modern HTTP/2 and HTTP/3 connections, combining files rarely helps and can create one large file that's harder to cache and more likely to break.

Page Optimization: Image and Media

Illustration for Page Optimization: Image and Media on the Best WP Rocket Settings page, showing a image diagram
Image & Media settings we recommend
SettingOur RecommendationWhy
LazyLoad for imagesOnOffscreen images load only when needed
LazyLoad for CSS background imagesOnBackground images in sections below the fold wait too
LazyLoad for iframes and videosOnEmbeds are some of the heaviest elements on a page
Replace YouTube iframe with preview imageOn if you embed YouTubeThe player loads only when clicked
Add missing image dimensionsOnPrevents layout shift from images without width and height
Self-host Google FontsOn if you use Google FontsRemoves the request to Google's servers
Preload fontsOnly for one or two fonts used above the foldToo many preloads compete with your LCP image

Because critical image optimization is automatic, you don't need to exclude your hero image from lazy loading by hand in most cases. If PageSpeed Insights still reports a lazy-loaded LCP image, add its filename to the lazy load exclusions.

Self-hosting Google Fonts is worth turning on for most sites that use them. It removes a separate connection to Google's servers and gives you more control over loading. See self-hosting Google Fonts for what to check afterward.

Cache: Preload

Leave Preload cache on. It rebuilds cached pages in the background after you publish or edit content, so visitors rarely hit an uncached page. If you use a popular SEO plugin, WP Rocket can use its sitemap to discover URLs.

Turn on Preload links. When a visitor hovers over a link, WP Rocket starts fetching that page, which makes the next click feel almost instant.

On some managed hosts with server-level caching, the host may recommend turning preload off to save resources. Kinsta, for example, advises against it on its platform. See the managed hosting preset below.

Cache: Cache Rules

Most sites don't need anything here. It's for exceptions.

WooCommerce cart, checkout and account pages are excluded automatically, so you don't need to add them. Our exclude pages from cache guide and logged-in caching guide cover the other cases.

Backend: Database and Heartbeat

Illustration for Backend: Database and Heartbeat on the Best WP Rocket Settings page, showing a database diagram

In Database, enable cleanup of post revisions, auto-drafts and trashed posts, spam and trashed comments, and expired transients. Turn on table optimization, then schedule an automatic cleanup weekly.

Two cautions. Take a backup before your first cleanup, because removed revisions can't be restored. And think twice before deleting all transients rather than only expired ones: some plugins rebuild them on the next page load, which can make that first request slow. For deeper cleanup, see database optimization.

In Heartbeat, turn on Control Heartbeat and set the backend and post editor to Reduce activity. That slows background requests while you're logged in without breaking autosave or post locking. We'd avoid fully disabling Heartbeat in the editor, since autosave depends on it. See the Heartbeat API guide.

Content Delivery

If you use a CDN that needs a CNAME, such as BunnyCDN or KeyCDN, add it as your own CDN so WP Rocket rewrites your static file URLs. Existing CDN settings from older versions are migrated automatically.

Your license includes RocketCDN free on three key pages, which is a sensible way to test a CDN on your homepage and top landing pages. If you use Cloudflare, you don't add it here: Cloudflare works at the DNS level. See WP Rocket and Cloudflare and RocketCDN.

Tools and Add-Ons

Varnish is usually enabled automatically on hosts that use it, so cache purges reach the server cache. Sucuri is only relevant if you use Sucuri's firewall. WebP Compatibility helps when an image plugin serves WebP versions. Cloudflare is optional for most sites; you only need it when you use Cloudflare's "Cache Everything" rules or want WP Rocket to manage some Cloudflare settings.

In Tools, export your settings once you're happy with them. If you manage several sites, import the same file elsewhere as a starting point. Rollback returns you to the previous WP Rocket version if an update causes trouble, and the MCP Server option lets AI assistants work with your settings and Rocket Insights data. See the WP Rocket MCP server.

Settings We'd Leave Off, and Why

Illustration for Settings We'd Leave Off, and Why on the Best WP Rocket Settings page, showing a steps diagram

Not every option should be switched on. These are the ones we'd usually leave alone.

Combine JavaScript files. As mentioned above, modern connections handle multiple files well, and combining can create large files and script errors. Delay JavaScript is far more effective.

User cache on ordinary sites. If only you and your editors log in, it adds overhead without helping visitors.

Deleting all transients on a schedule. Expired transients are safe to remove. Clearing every transient forces plugins to rebuild them, which can slow the next requests.

Preloading many fonts. Preload only the one or two files needed above the fold. Each extra preload competes with your LCP image for bandwidth.

Presets by Site Type

The recommendations above suit most sites. These are the adjustments we'd make for specific setups.

Blogs and content sites

Everything above, plus the YouTube preview image if you embed videos. Delay JS does the heavy lifting against ad and analytics scripts. See speeding up WordPress with ads.

WooCommerce stores

Everything above. Cart, checkout and account pages are excluded automatically. Check add-to-cart, variation selectors and mini-carts after enabling Delay JS. See speeding up WooCommerce.

Elementor and Divi sites

Remove Unused CSS matters most. Disable overlapping optimizations in the builder's own settings, and check animations and sticky headers after enabling Delay JS. See Elementor and Divi.

Membership and course sites

Consider user cache, and add membership plugin cookies to Never cache cookies if content is personalized. See logged-in caching.

Managed hosting (Kinsta, WP Engine, Cloudways)

Page caching is handled by the host and disabled in WP Rocket automatically. Keep the JavaScript, CSS and media settings. Follow your host's advice on preload.

Settings for Large Sites

Sites with thousands of posts or products need a couple of adjustments. Preloading every URL after each change can put real load on a modest server, so watch your host's resource graphs after enabling preload.

Remove Unused CSS also takes longer to process a large site, since pages are handled in the background. Give it time before judging the results, and check a sample of different templates rather than just the homepage. WP Rocket's documentation includes guidance for large websites if you run into limits.

Testing Your Settings

After each group of changes, run through this checklist in a private browser window.

  1. Clear and preload the cache

    Use the Clear and Preload Cache button so you're testing fresh optimized pages.

  2. Check key templates visually

    Homepage, a post, a page, an archive and, for stores, a product and the cart.

  3. Test interactions

    Open the mobile menu, use tabs and sliders, submit a form and, for stores, add a product to the cart.

  4. Look for console errors

    In Chrome DevTools, errors after enabling Delay JS or defer usually point to the script that needs an exclusion.

  5. Re-test performance

    Use Rocket Insights or PageSpeed Insights and compare against your baseline.

If something breaks and you can't find the cause, our WP Rocket broken layout and WP Rocket not working guides walk through the usual suspects.

Best WP Rocket Settings FAQ

Should I use Remove Unused CSS or Load CSS Asynchronously?

Start with Remove Unused CSS, which usually saves more. Switch to Load CSS Asynchronously if styling issues persist after adding the affected selectors to the safelist.

Is Delay JavaScript execution safe?

Yes for most sites, especially with the one-click exclusions for popular plugins. Check menus, sliders and forms after enabling it, and exclude any script that needs to run before the first interaction.

Where did the mobile cache and DNS prefetch settings go?

In recent versions, page caching for mobile and preconnect hints for external domains run automatically, so there's nothing to configure.

What cache lifespan should I use?

The default works for most sites, because preload rebuilds the cache when you publish or edit. Use a shorter lifespan only for time-sensitive content that changes without an edit.

Do these settings work on managed hosting?

The JavaScript, CSS and media settings do. Page caching is disabled automatically on hosts like Kinsta and WP Engine, which cache at the server level.

Can I copy settings between sites?

Yes. Export your settings from the Tools section and import the file on another site, then adjust exclusions for that site's theme and plugins.