Next.js · Junior · Question 23 of 75

How does SSR differ from SSG?

Explanation

Static Site Generation (prerendering) creates HTML at build time and serves it from a CDN - fast and cheap, but the data is "frozen". Server-Side Rendering produces HTML on every request - the data is fresh and personalized, but load and TTFB are higher. Rendering in the browser is CSR.

Further reading

Problem with a question

Next.js · Junior · question 23

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz