ZH-RESEARCH-001 · Full-stack engineering · Technical SEO

Next.js SSR vs CSR vs SSG: A Real Google Indexing Experiment

Status: PlannedPlan published By Zubair Hussain

Experiment design: 80 Next.js pages in four groups (SSR, CSR, SSG, ISR) behind Cloudflare, crawled by Googlebot and AI crawlers, measured with Search Console and server logs.
Experiment design. No results are shown until they have been measured.

The question

Why do some modern websites stay unindexed even when their sitemap, robots.txt and HTTP responses look correct?

Abstract

This started with my own portfolio. In late 2026 zubairhussain.xyz had a valid sitemap, an open robots.txt, 200 responses for Googlebot and every AI crawler, and its impressions still faded within two weeks. Duplicate www, http and /blog/ URLs turned out to be part of the cause. This experiment separates the remaining variables: the same content, published with four Next.js rendering strategies behind the same Cloudflare setup, measured in Search Console.

Hypothesis

Pages whose full content is in the first HTML response (SSR, SSG, ISR) get discovered and indexed faster than client-rendered pages, and Cloudflare security settings, not rendering, are the most common reason a correct page is never crawled.

Experimental setup

  • 80 genuinely useful pages: 20 each for server-side rendering, client-side rendering, static generation and incremental static regeneration.
  • Content quality, length and internal links are matched across the four groups so rendering is the main difference.
  • All pages sit behind the same Cloudflare zone, with WAF events logged for verified crawlers.
  • Indexing is tracked daily with the Search Console URL Inspection API and server logs for 30 days.

Method

  1. Publish the four groups on the same day and submit one sitemap.
  2. Record the first crawl, first render and first index date for every URL.
  3. Fetch each URL as Googlebot and compare the initial HTML with the rendered DOM.
  4. Log every Cloudflare WAF or bot-management action against a verified crawler.
  5. Track impressions and the Google-selected canonical for 30 days, then publish the raw data.

Test cases

IDExperimentMeasurementResult
TC-001Server-side renderingInitial HTML completenessPending
TC-002Client-side renderingRendered content availabilityPending
TC-003Static generationIndexing latencyPending
TC-004Incremental static regenerationContent refresh latencyPending
TC-005Cloudflare WAFVerified crawler accessibilityPending
TC-006Sitemap discoveryURL discovery timePending
TC-007Canonical validationGoogle-selected canonical URLPending
TC-008Mobile performanceLCP, INP, CLSPending
TC-009AI search eligibilityTechnical requirements metPending
TC-010Search visibilityImpressions over 30 daysPending

Results

Not measured yet. Results, the raw data as CSV and the source code will be published here once the experiment has run, including any test case that fails.

Work with me

Schedule a technical consultation

Facing the same problem in your own product? I can run the same tests on your stack and fix what they find.

All research