Static Site Generation (SSG)

Categories:Development

Static site generation builds every page into a finished HTML file at deploy time, so a request is answered by a file rather than by a server running code. It makes a site fast and hard to break, at the cost of a rebuild whenever content changes.

Last reviewed

Why it is fast

There is no database query and no template rendering at request time. A CDN serves a finished file from an edge location, which is roughly the cheapest and most reliable thing the web can do.

It also helps with AI visibility for a duller reason: the content is in the HTML. Anything rendered by client-side JavaScript after load may never be read by a crawler or a model, and content that is not read cannot be cited.

SSG, SSR, and client-side rendering
SSGSSRClient-side
RenderedAt build timePer requestIn the browser
Speed to first byteFastestModerateFast, then slow to paint
Content in the HTMLYesYesOften not
Readable by AI crawlersReliablyReliablyFrequently not
Cost of a content changeA rebuildNoneNone

The trade-off

Content changes require a build. For a marketing site publishing a few times a week that is invisible, since builds run in seconds to minutes. For a site with thousands of pages updating constantly it becomes a real operational cost.

  • Good fit: marketing sites, documentation, blogs, campaign pages
  • Awkward fit: anything with per-user content or live inventory
  • Middle ground: incremental or on-demand rendering, which rebuilds only affected pages

Where it sits next to a CMS

The pattern that suits B2B marketing is a headless CMS for editing plus a static build for delivery. Editors work in a familiar interface, a webhook triggers a rebuild, and the published site stays a set of files.

Why it matters for B2B marketing teams

The part that matters for B2B is not the speed, it is that your content exists in the HTML. Marketing sites built as client-rendered applications routinely find their best content is invisible to the AI crawlers deciding who gets cited.

Frequently asked questions

What is the difference between SSG and SSR?+

Static generation renders pages once at build time. Server-side rendering renders them per request. Static is faster and cheaper to serve; server rendering is necessary when a page must reflect something that changes between requests.

Is Webflow a static site generator?+

Not exactly, though the outcome is similar. Webflow publishes pre-rendered pages to a CDN, so pages are served as files rather than rendered on request. The build step is handled for you rather than run from a repository.

Related terms

←Back to Glossary