Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Dynamic rendering serves bots different content: how to fix it

SEO-145Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Dynamic rendering is a workaround for JavaScript-heavy sites. Your server (or a service in front of it) checks the user agent, the label a browser or crawler sends to identify itself. If it looks like Googlebot, Bingbot or another crawler, it returns a ready-made HTML snapshot. Everyone else gets the normal JavaScript app.

Why it costs you leads or sales

How a stale snapshot loses visitors
  1. You update the pageNew price and offer go live in the app
  2. Bot snapshotCache still holds the old version
  3. Search or AI answerShows the old price or text
  4. Visitor clicksSees a different page and leaves

The visitor journey is fine once they land, but the search listing was built from the old bot version.

Snapshot age versus mismatch riskExample numbers
Snapshot age versus mismatch risk (example)1 hour cache: 3 % of pages out of date; 1 day cache: 15 % of pages out of date; 1 week cache: 40 % of pages out of date; Never refreshed: 75 % of pages out of date0295831540751 hour cache1 day cache1 week cacheNever refreshed% of pages out of date

Example: the longer a snapshot cache lives, the more pages differ from the live version. Numbers are illustrative.

How to check if your site has it

Compare the bot and human versions
  1. Fetch the page as a normal browser

    Run the command below with a normal user agent and save the output.

  2. Fetch it as Googlebot

    Run it again with the Googlebot user agent. Repeat for Bingbot and any AI crawler user agents you want to test.

  3. Diff the two files

    Compare titles, headings, prices, stock text, links and structured data. Differences in tracking scripts are expected; differences in visible content are not.

  4. Check Google's own view

    In Google Search Console, open URL Inspection, enter the page, and choose View crawled page to see the HTML Google stored. Compare its date and content with your live page.

  5. Check cache age

    If you use a pre-render service, look in its dashboard for cache expiry settings and the last render time for each URL.

Fetch a page as a human and as Googlebot, then comparebash
URL="https://www.example.com/pricing"
curl -s -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120.0 Safari/537.36" "$URL" -o human.html
curl -s -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" "$URL" -o bot.html
diff <(sed 's/<[^>]*>/\n/g' human.html | grep -v '^\s*$') <(sed 's/<[^>]*>/\n/g' bot.html | grep -v '^\s*$') | head -50

How to fix it

Fix a stale or different bot version
  1. Find where the bot version is made

    Check your CDN, reverse proxy (nginx, Cloudflare Worker), framework middleware or a pre-render service. Note the user agent rules and the cache lifetime.

  2. Shorten or invalidate the cache

    Set a short expiry for pages that change often (prices, stock, offers) and purge the snapshot cache automatically on every deploy or content update.

  3. Make sure the snapshot waits for content

    Confirm the renderer waits until data from your APIs has loaded, so it does not capture a loading state or empty sections.

  4. Update bot detection rules

    Review the user agent list so legitimate crawlers get the same snapshot logic, and so humans never get the snapshot by mistake.

  5. Aim for one version

    Plan a move to server-side rendering, static generation or hydration with pre-rendered HTML so bots and people receive identical content.

  6. Request re-crawling of key pages

    After the fix, use URL Inspection in Search Console and choose Request indexing for important URLs.

Where to look on your platform
  1. Purge snapshots on deploy

    Add a step to your deploy pipeline that clears the pre-render cache, or call your service's cache-purge API for changed URLs.

  2. Consider SSR

    Frameworks such as Next.js, Nuxt, SvelteKit and Astro can render HTML on the server or at build time, which removes the need for user agent switching.

How to confirm it's fixed

Confirmation checks
  • The curl diff shows the same title, headings, prices and links for human and bot
  • Search Console URL Inspection shows a recent crawl with the current content
  • Changing a price or headline on a test page appears in the bot version within your target time
  • No loading placeholders or empty sections appear in the bot HTML
  • Search results and AI answers for your key pages eventually show the new text

How to prevent it happening again

Prevention habits
  • Purge the snapshot cache in your deploy pipeline
  • Set short cache lifetimes for prices, stock and offers
  • Run the bot-versus-human diff on key pages after each release
  • Review Search Console's Page indexing and Crawl stats reports monthly
  • Migrate to SSR or static generation so one HTML version serves everyone
  • Document which service renders snapshots and who owns it

How FunnelGuard handles this

Questions people ask

What is dynamic rendering in SEO?

Dynamic rendering is a setup where your server gives search engine crawlers a pre-rendered HTML version of a page and gives people the normal JavaScript version. It was used to help crawlers read JavaScript-heavy sites. Google calls it a workaround rather than a long-term solution.

Is dynamic rendering considered cloaking?

Not if the bot version shows the same content as the human version. It becomes a risk when the snapshot has materially different text, links or offers, even by accident. Keep both versions equivalent and compare them regularly.

Why does Google show an old price or description for my page?

Google may be indexing a stale pre-rendered snapshot or an old crawl. Check what Googlebot saw with URL Inspection in Search Console, then look at your snapshot cache lifetime and purge it. After fixing, request indexing for the page.

How do I see what Googlebot sees on my page?

Use URL Inspection in Google Search Console and open View crawled page to see the HTML Google stored. You can also fetch the page with a Googlebot user agent using curl, but that only tests your own rules and may not trigger an IP-verified snapshot.

How do I fix a stale pre-render cache?

Shorten the cache expiry for pages that change often and purge snapshots automatically on every deploy or content update. Also check that the renderer waits for API data before capturing the page. Then request re-crawling of key URLs.

Should I replace dynamic rendering with server-side rendering?

Usually yes, if you can. Server-side rendering or static generation sends the same complete HTML to bots and people, so there is nothing to drift apart. It also removes the user agent detection that can go wrong.

Does FunnelGuard check what bots see on my site?

No. FunnelGuard does not check this yet; it is a possible future check. It runs your real customer journeys and verifies steps, tracking hits and lead delivery, so you still need a manual comparison for bot content.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

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.