Sub topic 1
Why stale facts cost you trust and visibility
Prerequisites
This chapter assumes you know the following:
- Basic HTML and how a web page is served from a server to a browser.
- How to read JSON.
- Some experience editing or maintaining a content or e-commerce site.
- A basic idea of what search engines and crawlers do: they fetch pages, store what they find, and rank pages for queries.
You do not need to know schema.org, sitemaps, or HTTP caching yet. Later chapters cover them. This chapter explains why they matter.
What "stale" means
A fact is stale when the page says one thing and the real world says another. A price of 89.00 EUR on a page is stale if the product now costs 99.00 EUR. A "Last updated: March 2024" label is stale if the guide describes a feature that was removed in 2025. A product page is stale if it shows "In stock" for an item you no longer sell.
Staleness has two parts. The first is the age of the data. The second is the gap between what the page shows and what is true now. An old page with correct facts is not a problem. A page edited yesterday with one wrong price is.
A site usually states the same fact in several places. A price can appear in:
- the visible text of the page,
- the structured data (JSON-LD) in the page source,
- the sitemap and the HTTP headers,
- a product feed sent to a merchant platform,
- cached copies held by a CDN, a browser, or a search engine.
Staleness often means these copies disagree. One copy was updated and another was not.
How stale facts hurt users
Users act on what the page says. Three common failures:
- Wrong price. A visitor sees 89.00 EUR in a search result, clicks, and finds 99.00 EUR at checkout. Some leave. Others stay but trust the shop less. In some regions, advertising a price you will not honor can also create legal exposure.
- Wrong availability. The page says "In stock", the visitor orders, and the order is cancelled a day later. This costs a support contact and a customer.
- Wrong instructions or specifications. A setup guide names a menu that no longer exists. A size chart lists measurements that changed with a new model. The user follows the page and fails.
Each failure teaches the user that your pages cannot be relied on. Trust is slow to build and fast to lose, and users rarely report the error. They go elsewhere.
How stale facts hurt search visibility
Search engines want to show results that satisfy the query. They have several reasons to treat inconsistent or outdated pages with caution.
- Freshness as a signal for some queries. For queries where recency matters (current prices, "best X this year", news, software versions), engines prefer pages that look current. A page whose dates and details are old can lose ground to one that is maintained.
- Rich results depend on structured data. Product snippets can show price and availability. Engines compare the markup with the visible page. If they disagree, the page can lose the rich result, or the markup can be ignored. Google's guidelines say structured data must represent content that is visible on the page.
- Merchant listings depend on feeds. Shopping platforms check the feed against the landing page. A mismatch in price or availability can cause the item to be disapproved until it is fixed.
- Crawl scheduling. Crawlers revisit pages at different rates. If your sitemap
lastmodvalues are wrong, crawlers learn to ignore them. Real changes then take longer to be noticed.
Search engines do not publish exact ranking weights, so treat these as mechanisms you can observe, not as guaranteed score changes. The reliable part is the rich-result and merchant-listing checks, because those produce visible errors in reporting tools.
How stale facts hurt AI-generated answers
AI answer systems quote or summarize web pages. Some read a stored index. Others fetch pages at question time. In both cases they can repeat a fact that was true when the page was captured.
Several things make this worse for facts that change:
- Old copies persist. A stored index can hold a copy of your page for days or weeks. A CDN can hold another copy.
- Conflicting sources. If your visible text says 99.00 EUR, your JSON-LD says 89.00 EUR, and your feed says 95.00 EUR, a system has no reliable way to pick one. It may pick the wrong one, show a range, or skip your page for a clearer source.
- Dates guide trust. Systems often use a page's publication and modification dates to judge whether a claim is current. Missing or contradictory dates remove that signal.
- Wrong answers carry your name. When an assistant says "Trail Runner 2 costs 89 EUR at Example Shop" and the price is wrong, the user blames your shop, not the assistant.
You cannot control how an AI system uses your page. You can control whether every machine-readable and human-readable copy of a fact is correct, consistent, and honestly dated. That is the subject of this tutorial.
A worked example
Example Shop sells the Trail Runner 2. On Monday the price changes from 89.00 EUR to 99.00 EUR. The team edits the product page text. The following copies stay unchanged:
| Where the price lives | Value after Monday's edit | Correct? |
|---|---|---|
| Visible page text | 99.00 EUR | Yes |
| JSON-LD `offers.price` | 89.00 | No |
| Shopping feed | 89.00 | No |
| CDN cache (5-minute TTL not yet configured, 24-hour default) | 89.00 EUR page | No |
| Sitemap `lastmod` | Last month | No |
Three of the five copies are wrong, and the page looks fine to the person who made the edit. The consequences follow:
- A search result or AI answer built from the markup or the cache shows 89.00 EUR.
- The shopping platform compares its feed (89.00) with the landing page (99.00) and flags a price mismatch.
- The sitemap tells crawlers nothing changed, so a fresh visit is not prioritized.
The cause is not carelessness. The price was stored in several places, and a person had to remember each one. The fix is to store the price once and generate every copy from that record. Later chapters build this step by step.
flowchart TD
A[Price changes in one place only] --> B[Visible text updated]
A --> C[JSON-LD not updated]
A --> D[Feed not updated]
A --> E[CDN cache not purged]
C --> F[Markup disagrees with page]
D --> G[Merchant mismatch warning]
E --> H[Visitors see old price]
F --> I[Lost rich result or ignored markup]
G --> J[Product disapproved]
H --> K[Lost trust and sales]The block above is only a rough sketch of the same flow. Here is the same idea as a proper diagram:
What stale looks like in code
The next snippet shows the typical mismatch. The visible HTML says 99.00 EUR. The embedded JSON-LD, written by hand months ago, still says 89.00.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Trail Runner 2</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Trail Runner 2",
"offers": {
"@type": "Offer",
"price": "89.00",
"priceCurrency": "EUR",
"availability": "https://schema.org/InStock"
}
}
</script>
</head>
<body>
<h1>Trail Runner 2</h1>
<p class="price">99.00 EUR</p>
</body>
</html>A short script can find this kind of drift. It reads the visible price and the JSON-LD price from a page and compares them. This version uses only the Python standard library and works on a saved HTML file.
import json
import re
import sys
from html.parser import HTMLParser
class PageReader(HTMLParser):
def __init__(self):
super().__init__()
self.in_jsonld = False
self.in_price = False
self.jsonld_parts = []
self.visible_price = None
def handle_starttag(self, tag, attrs):
attrs = dict(attrs)
if tag == "script" and attrs.get("type") == "application/ld+json":
self.in_jsonld = True
if tag == "p" and attrs.get("class") == "price":
self.in_price = True
def handle_endtag(self, tag):
if tag == "script":
self.in_jsonld = False
if tag == "p":
self.in_price = False
def handle_data(self, data):
if self.in_jsonld:
self.jsonld_parts.append(data)
elif self.in_price:
match = re.search(r"\d+(?:\.\d+)?", data)
if match:
self.visible_price = match.group(0)
def check(html):
reader = PageReader()
reader.feed(html)
data = json.loads("".join(reader.jsonld_parts))
markup_price = data["offers"]["price"]
return reader.visible_price, markup_price
if __name__ == "__main__":
with open(sys.argv[1], encoding="utf-8") as f:
visible, markup = check(f.read())
if visible == markup:
print("OK: both show", visible)
else:
print("MISMATCH: visible", visible, "but JSON-LD", markup)
sys.exit(1)Save the HTML above as page.html and run python check.py page.html. It prints MISMATCH: visible 99.00 but JSON-LD 89.00 and exits with status 1. A non-zero exit lets a build pipeline fail. Later chapters turn this into a full audit.
The script compares strings, so 99.0 and 99.00 count as different. A production check should parse both values as decimals.
Common errors
These are the mistakes teams make most often when they first look at freshness.
- Treating freshness as a content problem only. Editors fix the visible text and forget markup, feeds, and caches. The fix needs engineering, not only editing.
- Changing dates to look fresh. Setting
dateModifiedto today without changing the content misleads users and engines. It can also teach crawlers to distrust your dates. A later chapter covers meaningful updates. - Assuming a restart of the cache is instant. CDNs and browsers hold copies according to headers you set. Without a plan, an updated page can stay hidden for hours.
- Leaving discontinued products live without a signal. A page that still says "In stock" for a retired item is a stale fact with a long life, because nobody edits it.
- Not measuring. Without checks, you learn about drift from customers or from a disapproval email.
What the rest of the tutorial builds
The plan for the tutorial follows the cause of drift. First you classify which facts go stale and how fast. Then you store each fact once and generate every copy from it. After that you express the facts in dates, JSON-LD, sitemaps, HTTP headers, and feeds. Last you add owners, review schedules, and automated checks to catch what slips through.
Keep one rule in mind from this chapter: every fact on your site should have one source and many outputs, and every output should be able to prove it matches the source.
Exercise
Example Shop changes the price of a product from 49.00 EUR to 55.00 EUR. The team updates the visible price on the product page. Name three other places where the old price could still appear, and state one consequence of each.
Show answer
Any three of the following. (1) The JSON-LD Offer in the page source: the markup disagrees with the visible text, so the product may lose its price rich result or the markup may be ignored. (2) The product feed sent to a merchant platform: the platform sees a mismatch with the landing page and can disapprove the listing. (3) A CDN or browser cache: visitors and crawlers keep receiving the old page, so some users see 49.00 EUR and may be upset at checkout. (4) The sitemap lastmod: it still shows an old date, so crawlers may not revisit the page soon. The shared cause is that the price was stored in several places instead of once.
Exercise
A page has had no edits for two years, but every fact on it is still correct. Is it stale? Explain in two sentences.
Show answer
No. Staleness is the gap between what the page says and what is true now, not the age of the page. An old page with correct, consistent facts is fine, although a reviewer should confirm periodically that the facts still hold.
Exercise
The sample check script compares the visible price and the JSON-LD price as strings. Give one case where it would report a false mismatch and say how to fix it.
Show answer
A visible price of 99.0 and a JSON-LD price of 99.00 are the same amount but different strings, so the script reports a mismatch. Fix it by converting both values with Python's decimal.Decimal before comparing them.