Skip to content
Diamond Sierra

PB-3007: Pages do not appear to be cached for visitors

Paul Bunyan code PB-3007 (Warning): Pages do not appear to be cached for visitors. What it means and what to do.

Updated · By Diamond Sierra

On this page

What it means

Two requests in a row for the home page, as a logged-out visitor, were both built from scratch. Every visitor pays the full build time and processor cost.

What to do

Turn on page caching in the caching plugin or at the host, then press "Test page cache" again. If caching is on, something is preventing it: a cookie set on every page, a no-cache header, or a query string.

Common causes

  • No caching plugin, or page caching switched off.
  • A cookie set on every page (a cart, consent or tracking cookie) that tells the cache to skip.
  • A Cache-Control: no-cache header sent by a plugin.
  • The home page treated as dynamic by the cache's settings.

How to find and fix it

  1. Turn on page caching in your caching plugin or at your host.
  2. Press "Test page cache" on Fix first again: the second load should come from the cache.
  3. If it still misses, open the home page in a private window and look at the response headers for a cookie or a no-cache header, and find which plugin sets it.
  4. Keep pages that must stay personal (cart, checkout, account) out of the cache.

Details

CodeSeverityGroup
PB-3007WarningSetup