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.

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
- Confirm pages are pre-built HTML files served from a CDN, not generated per request.
- Check how content updates reach the site: a rebuild, a schedule or on-demand revalidation.
- Verify sitemaps, canonicals and redirects are generated at build time and stay current.
- 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.
Related terms
Related services
Sources
- Rendering on the web · web.dev
- Understand JavaScript SEO basics · Google Search Central