Skip to content

Static site generation

Static site generation creates pages as files in advance. Changes to source data must also reach the output served to users.

Also known asSSG
Software Development

Produce pages before they are requested

Static site generation, or SSG, creates web page files in advance from content and templates. A generator performs this build step. Later requests can receive the prepared output without rebuilding the page for every request.

In a fictional business, a contact page is generated from approved location data. After an office move, changing only the source record is insufficient. The published page output must also be updated so the old address no longer appears.

This differs from dynamically generating HTML on request. A prebuilt page may still use JavaScript and data loaded later. Personal orders should not be published as publicly shared files. What matters is which content is known in advance and which data may only be supplied when access occurs.

Sources

Articles on this topic

Software Development with ASES

Custom software, web and mobile apps