SEO

SSG (Static Site Generation)

Also called Static site generation, static generation

Pages are built into finished HTML files ahead of time, then served as plain files with no work per request.

Quick facts: SSG (Static Site Generation)

Category
SEO
Also called
Static site generation, static generation
Level
Intermediate
Affects
Page speed, hosting cost, publishing workflow
Where to see it
Your site's build log, PageSpeed Insights, Search Console URL Inspection, browser view-source
In this article4
  1. How static site generation works
  2. Why static site generation matters
  3. Where static site generation goes wrong
  4. What to do about it

How static site generation works

A build step runs before anyone visits. It pulls content from wherever it lives — Markdown files, a headless CMS, a spreadsheet, an API — pushes it through the site’s templates, and writes out a folder of finished HTML files, one per URL. That folder is what gets deployed. When a visitor asks for a page, the host hands over a file that already exists; no application code runs and no database is touched.

Because nothing happens at request time, those files sit comfortably on a content delivery network close to the visitor. The trade is that the site only changes when you rebuild it, so publishing becomes an action rather than a save.

Why static site generation matters

It removes the two most common causes of slow pages in one move: server work and rendering work. The HTML is complete, so a crawler gets headings, copy, links, canonical tag and meta description on the first request, with nothing queued for later. Visitors get text on screen quickly even on a modest phone and a patchy connection, which is the everyday reality for most Nepali traffic.

There are quieter benefits worth knowing about. A site with no database and no application layer has far less to attack and far less to break, so uptime tends to be good and hosting tends to be cheap. For a brochure site, a documentation set or a blog, that combination is hard to beat.

Where static site generation goes wrong

The build becomes the bottleneck as a site grows. Every page is regenerated on every deploy, so a large catalogue can turn a one-word typo fix into a long wait, and an urgent correction into an anxious one. Editors used to hitting Update and seeing the change live find the delay genuinely disorienting, and it needs to be explained before launch rather than discovered after.

The second problem is anything that must be live. Stock levels, prices that move, availability, personalised blocks and search results cannot be baked in advance. Teams solve this by fetching that data in the browser, which quietly reintroduces every client-side rendering weakness in the parts of the page that use it. If indexable content ends up inside one of those blocks, it may never be seen.

What to do about it

Match the method to how the content behaves. Pages that change on a schedule — services, articles, guides, location pages, documentation — are ideal. Pages that must reflect the current second are not, and pretending otherwise creates work later.

Automate the rebuild so publishing does not depend on a developer: most headless CMS platforms can fire a webhook that triggers a build when an editor hits publish. Keep genuinely dynamic features as small, self-contained islands, and make sure nothing a search engine needs to read lives inside them. If build times start hurting, look at incremental static regeneration, which rebuilds only the pages that changed. And check after every deploy that the XML sitemap, canonical tags and redirects were regenerated with the rest of the site — they are the parts most often left behind, and a page speed win is no use if the sitemap is stale.

Do and do not

Do

  • Use it for content that changes on a schedule
  • Trigger rebuilds automatically when an editor publishes
  • Confirm sitemap, canonicals and redirects regenerate on deploy

Do not

  • Bake pages that must show live stock or prices
  • Hide indexable content inside browser-loaded blocks
  • Let editors discover the rebuild delay after launch

Questions people ask about this

Is a static site good for SEO?

It is a strong starting point. Every page arrives as complete HTML, so crawlers read the content, links and meta tags on the first request with nothing left to render. Pages also tend to load quickly because no server work happens per visit. None of that replaces good content, internal linking or titles, but it removes several common technical obstacles.

Can a static site handle a blog or an online shop?

A blog fits well, since posts change on a schedule and a rebuild after publishing is easy to automate. A shop is harder, because stock and prices need to be current and carts are personal to each visitor. The usual answer is a static shopfront with the live parts loaded separately, keeping indexable content in the generated HTML.

How is static site generation different from caching a normal site?

Caching keeps a copy of a page that an application produced, and the application is still there to fall back on when the copy expires. Static generation removes the application from the request entirely; the file is all there is. Caching is easier to add to an existing site, while generation gives simpler hosting and fewer moving parts.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.