---
title: "Stale prices from caches: Cache-Control for stores"
description: "You changed the price; a CDN or a crawler's cache still serves the old page. Agents then quote a price you no longer charge."
source_url: "https://specoria.com/insights/stale-prices-from-caches/"
lang: "en"
---

[Insights](https://specoria.com/insights/) Infrastructure

# Yesterday's price, served from a cache: Cache-Control for product pages that change

You changed the price; a CDN or a crawler's cache still serves the old page. Agents then quote a price you no longer charge. How HTTP caching decides what is fresh, why pages without Cache-Control get cached anyway and the settings that keep product pages current.

By [Specoria Team](https://specoria.com/about/) December 5, 2026 4 min read

In this article

- [How caches decide what is fresh](https://specoria.com/insights/stale-prices-from-caches/#how-caches-decide-what-is-fresh)
- [Pages without a header are cached anyway](https://specoria.com/insights/stale-prices-from-caches/#pages-without-a-header-are-cached-anyway)
- [Settings for product pages](https://specoria.com/insights/stale-prices-from-caches/#settings-for-product-pages)
- [Caches you don't control](https://specoria.com/insights/stale-prices-from-caches/#caches-you-don-t-control)
- [A quick check](https://specoria.com/insights/stale-prices-from-caches/#a-quick-check)
- [The bottom line](https://specoria.com/insights/stale-prices-from-caches/#the-bottom-line)

At 10:00 you raise a price from 1,290 to 1,390 because a supplier changed theirs. At 14:00 an agent tells a shopper your price is 1,290. Your page says 1,390. Somewhere between your server and the agent, a cache kept the old page, and the shopper arrives expecting a price you can't honor.

Caches make stores fast, and they are a common reason agents see old prices. In this article, we look at how HTTP caching decides when a page is still fresh, why pages without caching headers are cached anyway, and which settings keep product pages fast and current.

## How caches decide what is fresh

MDN's guide to HTTP caching describes two kinds of caches: **private caches**, tied to one client such as a browser, and **shared caches**, such as proxies and CDNs, that serve many clients. A stored response is either fresh, and reused, or stale, and checked or fetched again. The `Cache-Control` header tells caches which is which.

![A product page passing through a shared cache: with max-age set for days the cache keeps serving the old price after it changes, while short s-maxage with revalidation or a purge on price change serves the new price quickly](https://specoria.com/insights/fig/stale-prices-from-caches-1.svg) How long a cache may serve the old price, depending on your headers

The directives that matter most for product pages, as MDN describes them:

- **`max-age`:** how long a response stays fresh.
- **`s-maxage`:** how long it stays fresh in a shared cache; private caches ignore it, and for shared caches it overrides `max-age`.
- **`no-cache`:** the response may be stored, but must be validated with the origin server before each reuse.
- **`stale-while-revalidate`:** a cache may reuse a stale response for a while, as long as it revalidates it in the background.

## Pages without a header are cached anyway

MDN points out that HTTP is designed to cache as much as possible: even with no `Cache-Control`, responses can be stored and reused under certain conditions. This is called heuristic caching. MDN notes the specification recommends a freshness of about 10% of the time since the page was last modified, and concludes that basically all responses should specify `Cache-Control` explicitly.

For a product page last modified months ago, heuristic caching can keep a copy fresh for days, exactly when the price has just changed.

## Settings for product pages

- **Set `Cache-Control` explicitly** on product, category and cart pages.
- **Keep shared-cache freshness short** for pages with prices and stock, for example minutes with `s-maxage`, or use `no-cache` so caches revalidate.
- **Purge on change:** when a price or stock level changes, purge that product's URL from your CDN, rather than waiting for it to expire.
- **Use `stale-while-revalidate` carefully;** it keeps pages fast but can serve the old price for the window you allow.
- **Cache static assets for long,** product data for short. Images, scripts and fonts can be cached for a long time; the HTML that carries the price shouldn't be.
- **Keep structured data in the same response** as the visible price, so they can't be cached separately and drift apart.

## Caches you don't control

Search engines and AI services keep their own copies of pages, and refresh them on their own schedule. You can't set their expiry, but you can help them notice changes: an honest `lastmod` in your sitemap and a feed that updates when prices change. We covered both in [a sitemap crawlers can trust](https://specoria.com/insights/sitemaps-and-lastmod-for-agents/) and [Black Friday prices an agent can trust](https://specoria.com/insights/black-friday-sale-prices-agents/).

## A quick check

- Request a product page and read its response headers: is there a `Cache-Control`, and what does it say?
- Look for CDN headers that show a cache hit and the object's age.
- Change a test product's price and request the page again from another network. How long until the new price appears?
- Check that the structured data price changed at the same moment.

## The bottom line

A cache that serves yesterday's price makes an agent quote it. Set `Cache-Control` explicitly, keep shared-cache freshness short for pages that carry prices, purge on change and cache static files instead. Your pages stay fast, and the price an agent sees is the one you charge.

Specoria checks whether prices agree between your page, your structured data and your feed, and whether product pages are readable without JavaScript. Start with a [free readiness test](https://specoria.com/#contact).

### Sources

- MDN Web Docs, [HTTP caching](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching), last modified August 14, 2026.
- MDN Web Docs, [Cache-Control header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control), last modified September 17, 2026.
- Specoria Insights, [A sitemap crawlers can trust](https://specoria.com/insights/sitemaps-and-lastmod-for-agents/)

## Related

- [Test your structured data before an agent reads it: three tools and one rule](https://specoria.com/insights/testing-structured-data-before-agents-read-it/)
- [nosnippet, data-nosnippet, max-snippet: the controls that decide what AI answers can quote from your pages](https://specoria.com/insights/snippet-controls-and-ai-answers/)
- [One product, one URL: canonical addresses so an agent doesn't see three versions of your price](https://specoria.com/insights/canonical-urls-for-product-pages/)
- [Price consistency](https://specoria.com/method/checks/price-match/) The check: how we measure it and how to fix it
- [Price, currency, availability and URL](https://specoria.com/method/checks/offer-complete/) The check: how we measure it and how to fix it
- [Agentic commerce statistics](https://specoria.com/agentic-commerce-statistics/) Sourced, dated figures you can cite
- [Agent Readiness Index 2027](https://specoria.com/index/) How the benchmarked stores scored, with open data

FREE TEST

## Is your store ready for shopping agents?

See in seconds how a shopping agent reads your store: free, instant, no email needed.

The free test runs in your browser and needs JavaScript. [Request the free deep audit by email instead →](https://specoria.com/#contact)

Your result opens on its own page. Want the full picture? The free deep audit and panel come next, by email.
