عWork with me
SEO glossary

Static site generation (SSG)

Building a page’s HTML once at build time and serving the ready-made file, which is fast, cacheable and easy for crawlers to read.

Static site generation (SSG)
SSRWho builds the page?Server, every requestWhat arrives firstFull HTMLSSGWho builds the page?Build time, onceWhat arrives firstFull HTMLCSRWho builds the page?The visitor’s browserWhat arrives firstNear-empty shell
The more content is in the first HTML, the easier it is for a crawler to read without running JavaScript.

What it is

SSG pre-renders pages during the build and serves them from a CDN. Frameworks such as Astro and Next.js support it, and variants like incremental static regeneration (ISR) refresh pages on a schedule or on demand. It is ideal for content that changes rarely, such as marketing pages, articles and documentation.

Why it matters

It gives the fastest possible first response and full HTML for every crawler, which supports Core Web Vitals, crawling efficiency and AI visibility with very little JavaScript.

Common mistakes

  • Rebuilding rarely, so pages show outdated prices or stock
  • Thousands of pages that make builds slow, with no incremental strategy
  • Hydrating the whole page when only a small part is interactive
  • Forgetting sitemaps, canonicals and redirects at build time

How I handle it

I match page types to rendering: static where content is stable, server or incremental where it changes often, and keep JavaScript only where interaction needs it.

How to check it

  1. Confirm pages are pre-built HTML files served from a CDN, not generated per request.
  2. Check how content updates reach the site: a rebuild, a schedule or on-demand revalidation.
  3. Verify sitemaps, canonicals and redirects are generated at build time and stay current.
  4. Measure JavaScript shipped per page, since static pages should need very little.

Illustrative example

Example scenario: a site with a few hundred articles rebuilds when content changes and serves plain HTML from a CDN. Crawlers get complete pages instantly, and only small interactive widgets ship JavaScript.

Frequently asked questions

Can a static site have dynamic features?

Yes. Forms, search and personalization can run through small scripts or edge functions while pages stay static.

What is ISR?

Incremental static regeneration refreshes individual static pages after deployment, on a schedule or on demand, so large sites avoid full rebuilds.

Sources

Work with me

Need help with this on your site? Tell me about it.

Work with me
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