Skip to content
EnglishFrançais

Static vs dynamic website

A static vs dynamic website comparison comes down to when the site’s web pages get built. A static website serves HTML pages generated once, at publish time, then delivered as-is to every visitor. A dynamic website builds each page on request, by querying a database or services, which lets it tailor the response to the visitor.

Definition and how it works

The differences in detail

A cached dynamic page behaves, for the visitor, like a static page until it expires.

Static and dynamic websites compared
CriterionStatic websiteDynamic website
PersonalizationLimited to what the browser doesBy visitor, permissions or context
Updating contentRequires a new build, partial or fullVisible on publish, cache aside

Static vs dynamic website in practice

The decision is made page by page rather than by picking a camp. Documentation or corporate pages change little, which suits static generation or long caching. A customer area or a web portal that adapts content to the profile must stay dynamic.

Frequently asked questions

Does going static improve search rankings?

Not automatically. Search engines receive HTML in both cases, provided the page does not rely entirely on JavaScript to display its content. A dynamic site can reach short load times too with well-tuned caching. Implementation determines search quality, not the way pages are generated.

Can a static website be managed with a CMS?

Yes. The CMS serves as the editing tool, then a generator builds the static pages on each publish by reading content through an API, for example from a headless CMS. For editors, what changes is the delay between publishing and going live, as well as preview.