I build All Currency Converter, a free converter for 148 currencies. It started as an Android app that keeps working offline. This year I added a website so people can convert in the browser without installing anything, and so the app has a page Google can actually rank.
This post covers three things: how the site serves about 1,500 static pages from a single upstream request, how it handles currencies whose rate is fixed by law, and what happened when Google decided most of those pages were not worth showing.
One snapshot, every page
Each pair page (/convert/usd-to-eur, /fr/convertir/eur-en-xof…) shows a rate, a converter, conversion tables and some copy. With 25 featured currencies in two languages, that is 1,200 pair pages, plus currency pages, guides and indexes.
Calling a rates API once per page would burn any free tier in an afternoon. Instead, lib/rates.ts fetches one USD-based snapshot, and every page derives its cross-rate from it:
export function rateOf(snapshot: RateSnapshot, from: string, to: string): number | null { if (from === to) return 1 const fromRate = snapshot.rates[from] const toRate = snapshot.rates[to] if (!fromRate || !toRate) return null return toRate / fromRate } The fetch goes through Next's data cache, so all pages rendered in the same window share one response. Sources are tried in order: my own Cloudflare Worker, then the public endpoint of the same provider, then a bundled JSON snapshot. The function never throws. When it lands on the bundled snapshot, the page says so and leaves the rate out of the structured data, because publishing a stale figure as fact is worse than publishing none.
The browser side works the same way: the converter loads all 148 rates once and computes every cross-rate locally, so switching currencies costs no round trip.
The revalidation bill
My first version revalidated every page hourly. That looked reasonable until I checked the Vercel usage page: 1,500 pages rewriting themselves every hour spent the Hobby plan's ISR writes long before the month ended.
A pair page does not need a fresher rate than once a day; the converter on it is a quick answer, not a trading screen. So pair and currency pages now revalidate daily, while the home page, the indexes and /api/rates stay hourly.
There was one trap. A route revalidates as often as its most frequent fetch, and Next keys its data cache on the request, not on the revalidate option. If a daily page and an hourly page fetch the same URL, they can be served each other's entry. The fix is to make the window part of the request:
const response = await fetch(url, { headers: { 'x-rates-window': String(revalidate) }, next: { revalidate, tags: ['rates'] }, }) Two windows, two cache entries, and the hourly pages never get a day-old snapshot.
Fixed parities are not market rates
The West African CFA franc (XOF) has been fixed to the euro since 1999: 1 EUR = 655.957 XOF, exactly. Rate feeds still report it with a little noise, and a converter that shows 655.94 is simply wrong for someone paying rent in Abidjan or Dakar.
So the site holds known pegs at their official value, with a safety check: if the feed drifts more than 2% from the official figure, the peg is assumed to have changed and the feed wins.
const official = rates[peg.anchor] * peg.units if (Math.abs(market / official - 1) > MAX_DRIFT) continue next[code] = official The same table covers the Central African CFA franc, the UAE dirham, the Saudi riyal and a dozen others. Only pegged pairs carry a figure in their page title, because that figure will still be true next year.
Then the impressions stopped
From September to late October, Search Console looked like slow, steady progress: around 500 indexed pages and 400 to 1,000 impressions a day, with no clicks yet but positions creeping up.
On October 28th, impressions dropped to almost zero, overnight. Nothing was broken: the pages returned 200, robots.txt allowed everything, there was no manual action. What the indexing report showed instead was hundreds of pages moving to "Crawled, currently not indexed".
Looking at the site the way Google does, the reason was not hard to find. 1,200 pair pages built from the same template, where the only real difference between /convert/jpy-to-inr and /convert/jpy-to-brl is a number, read as mass-produced pages. Google does not need 1,200 of those from a new domain with no links.
What I changed
- Most pages are now
noindex, follow. A file,data/indexable.json, lists the pairs and currencies that are allowed in the index: 78 pairs and 12 currencies, built around the major currencies and the corridors the site is written for (CFA francs, naira, euro, dollar, pound, yuan, dirham). The other pages still exist and still work for visitors; they just stop competing for crawl budget. A page joins the list when Search Console shows it earning impressions. - The sitemap only lists indexable pages, about 200 URLs instead of 1,500, and noindex pages declare no hreflang.
- Pages that stay indexed got real content: a profile for each currency, 24 notes written for the pairs that need them (why EUR/XOF never moves, why USD/NGN moves in long steps rather than gentle drifts), and guides.
- No manufactured freshness. No "today" in titles, no floating rate in a meta description, no
lastmodon rate pages that changes because the rate changed. Alastmodthat moves on 1,500 URLs every day reads exactly like what it is. - A build check enforces it. After
next build, a script walks every generated HTML file and fails on a missing canonical, hreflang on a noindex page, a sitemap entry for a noindex page, or alastmodon a rate page. SEO rules that only live in someone's head do not survive the next refactor.
It is too early to say how far this brings the site back. What it already shows is that programmatic pages are cheap to generate and expensive to justify. The template is the easy part; the reason for each page to exist is the work.
Try it
The converter is at all-currency-converter.codeurdivoire.com (English) and /fr (French). If you have built programmatic pages that held up in Google, I would like to hear what made the difference.

