Static-Site Generation (SSG)

On this page, we didn't tell Next about any cache invalidations, so it generates the page once at build-time and serves that document to every client that requests the page.

This is extremely fast and efficient, but the content can never update.

Try it by updating the note here and refreshing this page.

This is the content of that note, according to this page rendered with SSG:
Change this text!  Bleh!!!
And this is the value of "lastUpdated" for the note:
Wed Apr 10 2024 16:53:14 GMT+0000 (Coordinated Universal Time)

The pseudo-code for this page is:
SSG code

Back
5