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.
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 overridesmax-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-Controlexplicitly on product, category and cart pages. - Keep shared-cache freshness short for pages with prices and stock, for example minutes with
s-maxage, or useno-cacheso 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-revalidatecarefully; 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 and Black Friday prices an agent can trust.
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.
Sources
- MDN Web Docs, HTTP caching, last modified August 14, 2026.
- MDN Web Docs, Cache-Control header, last modified September 17, 2026.
- Specoria Insights, A sitemap crawlers can trust