عWork with me

SSR, SSG or CSR: how to choose for SEO

A practical way to pick a rendering approach by how often content changes, how personalized it is and how much the page matters for search.

Ahmed Ali · 4 min read
SSR, SSG or CSR: how to choose for SEO
1Stable public pagesstatic generation2Large cataloguesincremental regeneration3Fast-changing public pagesserver-side rendering with caching4Private and interactiveclient-side rendering
Pages that must rank go in the HTML. Private pages can be client-rendered.

In short: choose per page type, not per site. Put pages that must be found in search, such as products, categories, articles and service pages, in the HTML with static generation or server-side rendering. Keep client-side rendering for private, interactive parts. This article is part of the JavaScript SEO guide.

The four questions that decide it

  1. Does this page need to rank? If a public page must be found in search, its content should be in the HTML, not depend on a script to appear.
  2. How often does its content change? Rarely: build it ahead. Often: render per request or refresh in the background.
  3. Is it personalized or private? Account pages, carts and dashboards do not need to be indexed and can be client-rendered.
  4. How many pages are there? Thousands of pages make full rebuilds slow, which favors on-demand or incremental approaches.

The modes side by side

Mode Content is in the first HTML Freshness Server load SEO risk Typical fit
Static generation (SSG) Yes At build time Very low Low Marketing pages, articles, docs
Incremental or on-demand regeneration Yes Refreshed on a schedule or on a trigger Low Low to medium (stale pages) Large catalogues
Server-side rendering (SSR) Yes Every request Higher Low, if fast Pricing, stock, personalized public pages
Client-side rendering (CSR) No, an empty shell Live Low Higher Logged-in apps, tools, dashboards
Hybrid per route Depends Depends Balanced Low when planned Most real sites

The glossary defines both approaches: server-side rendering and static site generation. The web.dev article Rendering on the web lays out the trade-offs, including performance.

Decision guide by page type

Page type Recommended Why
Home, services, about Static Stable, must rank, must be fast
Blog and guides Static Content in HTML, cheap to serve
Product pages in a small shop Static or incremental Content in HTML, controlled freshness
Product pages in a large shop Incremental or SSR with caching Too many pages to rebuild at once
Category and search results SSR with caching Many combinations, freshness matters
Pricing and availability SSR, or static with a fast data refresh Accuracy matters
Cart, checkout, account Client-rendered Private, not for search
Interactive tools Client-rendered shell around static content Describe the tool in HTML so the page can rank

What each choice costs

Static generation. Fast and robust. The cost is build time and having to rebuild when content changes. Large sites often pair it with regeneration.

Server-side rendering. Content is current and in the HTML. The cost is server work on every request, so response time and caching matter. A slow server hurts crawling and users alike.

Client-side rendering. Simple to build and good for apps. The cost for SEO is dependence on rendering, a slower first paint and more places for content to go missing. Google still documents JavaScript SEO as workable, but it recommends server-side rendering for good reason.

Dynamic rendering. Serving a prerendered version to bots is described by Google as a workaround and not a long-term solution, with extra complexity. Prefer one of the approaches above. Google describes dynamic rendering as a workaround in its own documentation.

How frameworks map to this

  • Next.js lets you mix static, dynamic and incremental rendering per route, and separates server and client components. The Next.js docs explain Server and Client Components and Incremental Static Regeneration.
  • Nuxt offers universal rendering, static generation and client-only rendering, configurable per route. The Nuxt docs describe the rendering modes.
  • Astro and similar static-first tools produce HTML by default and add JavaScript only where needed.

The tool matters less than the outcome: the content, links and tags for indexable pages are in the HTML the server sends.

Moving from client-side to something safer

You rarely need a rewrite. A staged path works:

  1. List the templates that must rank and test what a crawler sees. How to check what Google really sees explains how to run that test.
  2. Move those templates first, to build time or the server.
  3. Leave private areas client-rendered.
  4. Retest after each release and compare crawls.

The mistakes I see most

  • Choosing one mode for the whole site.
  • Client-rendering product and category pages that must rank.
  • Server-rendering without caching, then blaming SEO for a slow site.
  • Static pages that are never rebuilt when content changes.
  • A dynamic-rendering setup that drifts away from what users see.

I help sites with this through JavaScript rendering SEO service; contact me and tell me where things stand.

FAQ

Which rendering mode is best for SEO?

There is no single best one. Static generation and server-side rendering put content in the HTML, which is the safest for indexing. Client-side rendering can work, but it depends on rendering and is a risk for pages that must be indexed.

Can one site use several modes?

Yes, and most large sites do. Frameworks let you choose per route: static for stable pages, server-rendered for dynamic ones and client-rendered for private areas.

Is incremental static regeneration good for SEO?

It can be. It serves static HTML for speed and refreshes it in the background. The risks are stale content and caching rules, so decide how fresh each page type must be.

Sources

Keep reading

Related glossary terms

Want this applied to your site?

Tell me about your site and I’ll suggest the next step.

Work with me Services
Book a free audit call

Work with me

Tell me about your site and goals. I usually reply within 24 hours.

Your message comes straight to me. I usually reply within 24 hours.

Esc

↑↓ move · Enter open · Esc close