How a SPA served identical 3,780-byte HTML to Googlebot across 741 URLs
A development team discovered that every URL on their single-page application was returning identical, near-empty HTML to Googlebot, causing Google Search Console to flag 116 URLs with indexing issues. The root cause was that Googlebot's JavaScript rendering runs in a separate, budgeted queue, meaning low-authority domains often get crawled before the page is fully rendered. The team fixed this by injecting real meta tags into each static HTML file at build time, while ensuring the static markup remained a subset of the rendered content to avoid cloaking penalties. Additional bugs were uncovered, including a React Helmet conflict that stripped static meta tags, a sitemap generator missing from the build pipeline, and a dead code branch that silently returned null for a key route. The team concluded that SEO verification should always use a crawler user agent rather than a browser, since browsers execute JavaScript and mask the exact problem being investigated.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in