Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Cache-Control: no-store on static pages: how to find and fix it

PRF-055Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Cache-Control is an HTTP response header. It tells browsers and CDNs (content delivery networks, which keep copies of your pages on servers close to visitors) how long they may reuse a response. The value no-store is the strictest: it says nothing may be saved anywhere, not even briefly.

Why it costs you leads or sales

With no-store, a CDN cannot serve your page from a nearby server, so each visitor waits for your origin to build and send the HTML. That raises time to first byte (TTFB, the wait before the first byte of the page arrives), especially for visitors far from your server or during traffic spikes from an ad campaign. Slower first loads tend to mean more people leave before the form or button appears.

What no-store does to a landing page visit
  1. Ad clickVisitor requests the landing page
  2. CDNHeader says no-store, so it cannot keep a copy
  3. Origin builds pageEvery visit, every time
  4. Slower first byteVisitor waits longer to see the form

Every request goes all the way to the origin, so the CDN adds no speed.

TTFB with and without edge cachingExample numbers
TTFB with and without edge caching (example)no-store (origin every time): 900 ms; Short shared cache (CDN hit): 120 ms0345690900120no-store (origin ever…Short shared cache (C…ms

Example: illustrative numbers for a visitor far from the origin server. Your results will differ.

How to check if your site has it

Check the header in your browser
  1. Open DevTools

    In Chrome, press F12 and open the Network tab. Tick Disable cache off, then reload the page.

  2. Select the HTML document

    Click the first request, the one with Type document and your page URL.

  3. Read the response headers

    Under Headers, look at Response Headers for cache-control. If it contains no-store, you have the issue. Also look for cf-cache-status, x-cache or age, which show whether a CDN served a cached copy.

  4. Repeat on a few page types

    Test the home page, a landing page, a blog post, and the cart. Only the cart and other private pages should say no-store.

Check from the command linebash
curl -sI https://www.example.com/landing-page/ | grep -i -E 'cache-control|age|x-cache|cf-cache-status'

You can also export a HAR file (a saved log of every request) from the Network tab and search it for no-store to check many pages at once.

How to fix it

First find where the header comes from. It may be your host, a plugin, your app code, your web server config or the CDN. Then change it for static pages only. A safe starting rule is public, max-age=0, s-maxage=300: browsers always revalidate, while a CDN may keep the page for five minutes.

Replace no-store on static pages
  1. Find the source

    Deactivate security, maintenance and performance plugins one at a time and re-check the header. Some hosts also add it; check the host's caching panel.

  2. Use your cache plugin

    Enable page caching in your cache plugin or host cache and keep cart, checkout and account pages excluded. Most plugins then send a caching header on public pages.

  3. Or set it in code

    Add the PHP snippet below to a small custom plugin if you need to override the header for public pages.

WordPress: shared-cache header for public pagesphp
add_action('send_headers', function () {
    if (is_user_logged_in() || is_admin()) {
        return;
    }
    // Skip WooCommerce private pages if present
    if (function_exists('is_cart') && (is_cart() || is_checkout() || is_account_page())) {
        return;
    }
    header_remove('Cache-Control');
    header('Cache-Control: public, max-age=0, s-maxage=300');
}, 99);
nginx: replace the header on a landing page pathnginx
location /landing/ {
    proxy_hide_header Cache-Control;
    add_header Cache-Control "public, max-age=0, s-maxage=300" always;
    proxy_pass http://app_backend;
}
Apache: set the header for HTML (needs mod_headers)htaccess
<FilesMatch "\.html$">
    Header set Cache-Control "public, max-age=0, s-maxage=300"
</FilesMatch>

How to confirm it's fixed

Confirm the change
  • The static page's response no longer contains no-store.
  • The header shows your new value, for example public, max-age=0, s-maxage=300.
  • A second request shows a CDN hit (age above 0, or cf-cache-status: HIT, or x-cache: Hit).
  • The cart, checkout and account pages still send no-store or private.
  • Your lead form and checkout still work from a fresh browser window.
  • An edited page shows its new content after your normal publish or purge step.

How to prevent it happening again

Keep it from coming back
  • Write down which layer owns cache headers: host, plugin, app or CDN.
  • Set cache rules per page type, never one global rule.
  • Re-check headers after installing security or performance plugins and after host migrations.
  • Add a header check to your launch checklist for every new landing page.
  • Purge the CDN cache whenever you change prices or offers.

How FunnelGuard handles this

FunnelGuard does not check this yet. Reading cache headers from the saved request logs is a possible future check, so today you need to watch for it yourself.

What FunnelGuard does do is run your real customer journeys on a schedule, from the EU or the US, and check each step, the tracking hits and whether test leads arrive. If a caching change breaks a form or a tracking tag, that kind of failure shows up in those journey checks, with a screenshot and a likely cause. It does not tell you about the header itself.

To watch for the header, re-run the DevTools or curl check above after every release, plugin change or host change. Your CDN's analytics can also show a low cache hit ratio. FunnelGuard has a Free plan (1 site, 2 journeys, daily checks, no card) if you want journey monitoring alongside, and a free read-only website audit.

Questions people ask

What does Cache-Control: no-store mean?

It tells browsers and CDNs not to save any copy of the response. Every request must go back to your server. It suits private pages like baskets and account pages, not public landing pages.

Why is my CDN not caching my HTML pages?

A common cause is a Cache-Control header with no-store, private or no-cache on the page. Some CDNs also do not cache HTML by default, or skip pages that set cookies. Check the response headers and your CDN's rules for HTML.

Is no-store bad for SEO?

It does not directly block indexing. It can make pages slower for visitors and crawlers because nothing is cached, and slower pages can hurt user experience. The effect is usually small compared with other speed problems.

What is the difference between no-store and no-cache?

no-store forbids saving the response at all. no-cache allows saving it, but the cache must check with your server before reusing it. For public pages, neither is ideal unless content changes constantly.

What Cache-Control should I use for a landing page?

A cautious choice is public, max-age=0, s-maxage=300. Browsers always revalidate while a CDN keeps the page for five minutes. Raise the CDN lifetime only if you can purge the cache when you edit the page.

How do I check the Cache-Control header of a page?

Open Chrome DevTools, go to the Network tab, reload the page and click the HTML document. Read cache-control under Response Headers. Or run curl -sI followed by the URL in a terminal.

Should checkout pages use no-store?

Yes, usually. Checkout, cart and account pages contain personal or session data and should not be saved by shared caches. Keep no-store or private on them and fix only public pages.

Does FunnelGuard detect no-store headers?

No. FunnelGuard does not check this yet; it is a possible future check. It does run your funnel journeys on a schedule, so you can still catch a form or tracking failure caused by a caching change.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.