How to Check If WordPress Cache Is Working: 6 Tests With Real Headers

Check if WordPress cache is working: curl headers showing cf-cache-status HIT and x-flying-press-cache HIT, then BYPASS and MISS

To check if WordPress cache is working, open the page in a private window while logged out, load it twice and read the response headers. A HIT from your cache plugin or from Cloudflare means the page came from cache; a MISS on every reload means it did not. The page source and your object cache screen tell you the rest.

Below is how to check if WordPress cache is working on every layer, with the real headers from my own site, WebPickr. If your actual problem is that edits are not appearing, my guide to WordPress changes not showing is the faster read.

Tested on: WebPickr, FlyingPress 5.6.7, WordPress 7.1.4, Redis object cache, Cloudflare free plan, Nginx with aaPanel on a VPS in Hong Kong. Measured from Dhaka on 6 November 2026.

How to check if WordPress cache is working in 2 minutes

  1. Log out of WordPress, or open a private (incognito) window. Cache plugins skip logged-in users, so an admin view tells you nothing.
  2. Load the page once, then reload it. The first visit after a purge can be the one that builds the cached copy.
  3. Press F12, open Network, reload, click the first row (the page itself) and read Response Headers.
  4. Look for a cache header: cf-cache-status, x-flying-press-cache, x-litespeed-cache, wp-super-cache or x-cache. HIT means cached. MISS once and then HIT is a healthy cache filling up.
  5. Press Ctrl+U (Cmd+Option+U on Mac) and scroll to the very bottom. Most cache plugins leave a comment with a timestamp. Reload twice; if the timestamp stays the same, the page is coming from cache.
  6. Check the object cache separately (plugin status screen, Site Health or WP-CLI). Page headers say nothing about it.

What I found on my own site

I ran every test in this guide on one live post. All layers were doing their job:

LayerHow I checkedWhat it showed (6 Nov 2026)
Cloudflare edgecurl headerscf-cache-status: HIT, age: 5813, cdn-cache-control: max-age=2592000
Page cache (FlyingPress)header and page sourcex-flying-press-cache: HIT; footprint “Cached at 1793900034” (5 Nov 2026, 17:33:54 UTC)
Uncached pathsame URL with ?nocache=1cf-cache-status: BYPASS, x-flying-press-cache: MISS
Object cache (Redis)FlyingPress status screenConnected, 32.2 MB of 2 GB used, 99% hit rate
Browser (HTML)cache-control headerno-cache: the browser re-checks the page each visit, which is what I want
Speed proofcurl, 5 runs0.177 s median time to first byte on an edge hit
curl headers used to check if WordPress cache is working: cf-cache-status HIT and x-flying-press-cache HIT

The age: 5813 line says Cloudflare’s copy was 5,813 seconds old, about 97 minutes. cdn-cache-control allows the edge to keep the page for 2,592,000 seconds (30 days); FlyingPress purges it when I update the post. Here is the same URL with a made-up query string, which both caches refuse to serve from cache:

The same WordPress URL with a query string showing cf-cache-status BYPASS and x-flying-press-cache MISS

That pair is the cleanest proof you can get: one request served from cache, one built fresh, same page, same session.

Test 1: check as a visitor, not as an admin

The most common false alarm is testing while logged in. Page caches look for login and session cookies and skip the cache when they find one. The cookie list in FlyingPress’s Nginx rules is typical: wordpress_logged_in, wp-postpass (password-protected posts), comment_author (people who commented), woocommerce_cart_hash and edd_items_in_cart (shoppers with a cart).

So a private window, logged out, is the minimum. If you left a comment on your own site, your normal browser may carry a comment_author cookie even when logged out. curl has no cookies at all, which is one reason I trust it more than a browser for this.

Test 2: read the response headers

The quickest way to check WordPress cache on any layer is the response headers. Every cache that serves a page can add one saying so, and you can read them in two ways.

With curl (Windows, Mac, Linux)

curl is built into Windows 10 and 11. Open Command Prompt (in PowerShell, type curl.exe, because older versions map curl to a different command) and run this twice:

curl -s -o NUL -D - https://example.com/your-page/

It downloads the page, throws the body away (-o NUL) and prints only the headers (-D -). It only reads; nothing on your site changes. On Mac or Linux, write -o /dev/null instead. Read the second run: the first can be the one that fills the cache.

With Chrome DevTools

Press F12, open Network, reload the page, click the first row and look under Response Headers. Same information, no command line:

Chrome DevTools Network panel with the response headers used to check WordPress cache status

Which header belongs to which layer

HeaderSet byWhat it tells you
cf-cache-statusCloudflareWhether the edge served the page (values below)
ageCloudflare or another CDNHow many seconds old the cached copy is; Cloudflare leaves it out on a MISS
cdn-cache-controlYour plugin or serverHow long a CDN may keep the page (mine: 30 days)
x-flying-press-cacheFlyingPressHIT = served from its page cache, MISS = built now
x-flying-press-sourceFlyingPressHow the page was delivered (PHP or web server), not whether it was cached
wp-super-cacheWP Super Cache“Served supercache file from PHP” or “Served WPCache cache file” (no header in Expert mode, where Apache serves the file without PHP; use the footprint instead)
x-litespeed-cacheLiteSpeed Cache (LiteSpeed servers only)hit or miss
x-cacheVarnish, many hosts and CDNsUsually HIT or MISS
x-cache-status, x-fastcgi-cacheNginx FastCGI cache, only if your host or panel adds the header (names vary; not tested by me)HIT, MISS or BYPASS
cache-controlYour server or pluginRules for the browser. no-cache here does not mean the page is uncached on the server or edge

Not every plugin sends a header. If you see none, the page source footprint (Test 3) is your next check.

xSpeed Cache sends x-xspeed-cache, which reads HIT (php) or HIT (nginx) depending on whether its Nginx snippet is in place, as I show in my xSpeed Cache review.

What each cf-cache-status value means

For why a page keeps showing DYNAMIC or BYPASS and the three ways to turn it into a HIT, see my cf-cache-status explained guide. The short version below follows Cloudflare’s cache response docs:

ValueMeaningWhat to do
HITServed from Cloudflare’s cacheNothing
MISSCacheable, but this data centre had no copy, so your server answeredReload; it should turn into HIT
EXPIREDThere was a copy, it had expired, a fresh one was fetchedNormal
REVALIDATEDYour server confirmed the cached copy was still currentNormal
UPDATINGAn expired copy was served while a fresh one loads in the backgroundNormal
STALEAn expired copy was served because your server did not answerCheck that your server is up
BYPASSThe request was cacheable, but the response said not to store it (no-store, private, a Set-Cookie)Find the header or cookie that blocks it
DYNAMICNot eligible for cache. This is the default for HTMLFine, unless you want HTML cached at the edge (see below)
NONE / UNKNOWNCloudflare answered itself: a redirect, a firewall block or a WorkerTest the final URL, not one that redirects

DYNAMIC confuses many people. Cloudflare caches CSS, JavaScript and images by default, but not your HTML pages, so a DYNAMIC page is not broken. To get HTML HITs like mine, you need a cache rule, APO, or a plugin integration that sets one up. I use the FlyingPress Cloudflare integration; my Cloudflare settings for WordPress post shows the rest of the setup.

If you would rather not open DevTools, our free WordPress cache checker loads a page twice and reads the same headers for you.

Test 3: find the cache footprint in the page source

Open the page logged out, press Ctrl+U (Cmd+Option+U on Mac) and scroll to the last line. On WebPickr it reads:

FlyingPress cache footprint comment with a Cached at timestamp at the bottom of the WordPress page source

The number after “Cached at” is a Unix timestamp. 1793900034 is 5 November 2026, 17:33:54 UTC, which matched the last-modified header Cloudflare passed on. Reload the page twice. If the number stays the same, both loads came from the stored copy. If it changes on every load, the page is being built every time and the cache is not serving it.

One thing I noticed: the Cloudflare copy carried the same comment, because the edge stores the page exactly as my server cached it. So the footprint proves the page cache made the copy, not which layer delivered it. The headers answer that part.

What to look for with other plugins, taken from their own documentation (I have not screenshot these yet):

PluginFootprint or built-in checkCache folder
FlyingPress“Powered by FlyingPress … Cached at <timestamp>”wp-content/cache/flying-press/
WP Rocket“Performance optimized by WP Rocket … Debug: cached@<timestamp>” (no response header by default; footprint hidden if white label is on)wp-content/cache/wp-rocket/
WP Super CacheTimestamp comment (turn on the cache status message under Debug), plus a built-in Cache Tester on the settings pagewp-content/cache/supercache/
W3 Total Cache“Performance optimized by W3 Total Cache”; debug mode adds cache details to the commentwp-content/cache/page_enhanced/ (Disk: Enhanced)
WP Fastest Cache“WP Fastest Cache file was created in … seconds”wp-content/cache/all/

Minified files are a second sign. WP Rocket serves CSS and JS from /wp-content/cache/min/, W3 Total Cache from /wp-content/cache/minify/, and FlyingPress puts flying-press in its file paths, so search the page source for those with Ctrl+F. Some HTML minifiers strip comments; if yours does, rely on the headers.

Browser extensions such as Wappalyzer can tell you which cache plugin or CDN a site uses. They cannot tell you whether this page was a HIT, so treat them as a hint only.

Some guides suggest stopping PHP-FPM: if the page still loads, the web server is serving cache files directly. That only holds when the header says x-flying-press-source: Web Server (or your plugin’s equivalent). Mine says PHP even on a HIT, so on WebPickr this test would take the site down even though the cache works. Do not run it on a live site.

Test 4: compare a cached and an uncached request

A HIT only matters if it makes the page faster. Time both versions with curl (it only reads):

curl -o NUL -s -w "TTFB %{time_starttransfer}s total %{time_total}s\n" https://example.com/your-page/

Run it five times, drop the first run and take the middle of the rest. Then run it on the same URL with ?nocache=1 added, in quotes. On my edge-cached post, five runs gave 0.355 s (dropped), 0.176, 0.178, 0.170 and 0.195 s: a median of 0.177 s.

Five curl TTFB runs from Dhaka on a Cloudflare edge-cached WordPress page

For a full before-and-after, I measured a test copy of one page on 28 October: 0.872 s with no cache plugin, 0.385 s with FlyingPress page cache, 0.145 s with the Cloudflare edge cache on top. How I got there is in how to reduce TTFB in WordPress.

DevTools gives a much smaller number for the same page, and that is not a contradiction. Its Timing tab splits the request into phases, and the “Waiting for server response” row is only the wait after the request is sent:

Chrome DevTools Timing tab showing the Waiting for server response time of a cached WordPress page

Mine showed 15.30 ms against 177 ms from curl. curl counts DNS, the connection and the TLS handshake too; the browser can reuse an open connection on a reload. Compare numbers from the same tool only.

Test 5: check that the object cache (Redis) is working

Page cache headers say nothing about the object cache. Redis or Memcached keeps database query results in memory, and that helps the requests a page cache cannot serve: logged-in users, the admin area, carts and searches. You check it from the inside: Setting up each layer from scratch is covered in my WordPress caching setup guide.

  • Your plugin’s status screen. FlyingPress shows it under its object cache setting. Mine said Redis was connected, using 32.2 MB of 2 GB, with a 99% hit rate.
  • Site Health. Under Tools > Site Health, WordPress lists “A persistent object cache is being used” as passed once one is active.
  • WP-CLI, if you have SSH: wp cache type names the object cache. Default means no persistent cache; Redis or Unknown both mean one is active (Unknown only means WP-CLI does not recognise that plugin’s drop-in). It only reads.
  • redis-cli on the server: redis-cli INFO stats shows keyspace_hits and keyspace_misses for the whole Redis server (if Redis has a password, as aaPanel sets one, use redis-cli -a 'yourpassword' INFO stats). Run it twice a minute apart; hits should keep climbing. It only reads and changes nothing.
FlyingPress object cache status showing Redis connected with memory used and hit rate

If several sites share one Redis server, give each its own database number and key prefix, or one site can read or flush another’s cache. My setup is in the aaPanel Redis object cache guide.

Test 6: check the browser cache for CSS, JS and images

Open DevTools, leave “Disable cache” unticked, and reload a page you have already visited. In the Size column, files the browser reused show (memory cache) or (disk cache) instead of a size. Click one and look for a cache-control header with a long max-age in the response.

Do not expect the same for the HTML page. Mine sends cache-control: no-cache for the HTML on purpose: the browser asks again on every visit, so readers never get stuck on an old version, while Cloudflare still answers from its edge.

Check the cache folder on the server

If you have file access (aaPanel Files, cPanel File Manager or SFTP), open the folder from the table in Test 3. You should see one folder per cached page with recent dates. Visit a page logged out and its folder should appear or update.

An empty folder after a few visits means the plugin is not writing files, often a permissions problem or another plugin taking over page caching. A folder that never changes date when you update posts points to a purge that is not running. Old folders from a plugin you removed are leftovers; delete them so they cannot confuse you later.

Cache shows MISS or BYPASS: common causes

What you seeLikely causeWhat to do
MISS on the first load onlyCache was just cleared, or this Cloudflare data centre has no copy yetReload. Preloading fills the cache before visitors arrive
MISS every time, in your normal browserYou are logged in, or carry a comment or cart cookieTest in a private window or with curl
MISS on one page onlyThat page is excluded, or the URL has a query stringCheck the plugin’s exclusions; test the clean URL
Plugin says MISS, but the page is fastAnother layer served it (Cloudflare APO, Varnish, host cache); FlyingPress’s docs call this expectedRead that layer’s header instead
cf-cache-status: DYNAMICNo rule makes HTML cacheable at Cloudflare (the default)Add a cache rule or your plugin’s Cloudflare integration, or leave it
cf-cache-status: BYPASSYour server sent no-store, private or a Set-CookieFind the plugin or rule adding that header
No cache header and no footprintPage cache is off, two cache plugins are fighting, or your host disables plugin page cachingRun one page cache plugin only; ask your host
Cart and checkout never cachedCorrect: those pages are personalNothing

A checklist you can copy

  1. Logged out or private window, page loaded twice.
  2. A cache header says HIT (plugin, Cloudflare or host).
  3. Page source footprint present, timestamp unchanged across reloads.
  4. The same URL with ?nocache=1 shows MISS or BYPASS (my 28 October test copy took 0.872 s with no cache against 0.145 s from the edge).
  5. Object cache: connected, hit rate climbing.
  6. Static files come from (memory cache) or (disk cache) on a second visit.
  7. After you update a post, the timestamp changes once, then holds again.

What I have not tested yet

Everything I measured here comes from one setup: FlyingPress, Redis and Cloudflare on WebPickr. The footprints and folders for WP Rocket, WP Super Cache, W3 Total Cache and WP Fastest Cache come from each plugin’s documentation. I am testing those plugins on a separate test site and will add their real headers to this guide after that. I also did not test LiteSpeed Cache, because its page cache needs a LiteSpeed server and mine runs Nginx. I have since measured ten cache plugins on one test server; the results are in my WordPress cache plugin comparison.

If you want the setup I tested, I use FlyingPress for page cache and the Cloudflare integration. That is an affiliate link: I may earn a commission at no extra cost to you. My FlyingPress settings are written up step by step.

Next: if the checks pass but visitors still see an old page, follow WordPress changes not showing to find the stale layer.

FAQ

How do I know if my WordPress site is cached?

Open a page logged out in a private window, reload it, and look for a HIT in the response headers (for example cf-cache-status or x-flying-press-cache). A cache comment at the bottom of the page source, with a timestamp that stays the same across reloads, confirms it.

Why does my cache show MISS?

Once is normal: the first request after a purge, or the first one to a new Cloudflare data centre, builds the copy. MISS on every reload usually means you are logged in, the URL has a query string, the page is excluded, or another cache layer is serving it.

What does cf-cache-status DYNAMIC mean?

Cloudflare decided the page was not eligible for caching, so it went straight to your server. That is the default for HTML. It is not an error; you only need a cache rule or a plugin integration if you want HTML cached at the edge.

Why can’t I see the cached page when I am logged in?

Cache plugins skip visitors with login, comment or cart cookies so those people see their own content. Test logged out, in a private window, or with curl, which sends no cookies.

How do I check if Redis object cache is working?

Look at your object cache plugin’s status screen, or Tools > Site Health, which reports a persistent object cache as passed. With SSH access, wp cache type or redis-cli INFO stats (keyspace hits climbing) confirms it. Both commands only read.

Does cache-control: no-cache mean my page is not cached?

No. That header tells the browser to re-check the page on each visit. Your page cache and Cloudflare can still serve it; their own headers, such as a HIT in cf-cache-status, show that.

Related Guides