Full answer
A good answer states the questions first and then applies them to each page.
Questions to ask for every route:
- Is the content the same for everybody, or is it personal?
- How often does it change, and how bad is a stale copy?
- Does it need to be found by search or shared as a link?
- How much interactivity does it have?
- What is the traffic, and what does a server render cost at that traffic?
Applied to the five pages:
- Home page: the same for everyone and changes rarely. Static generation, served from a CDN. Personal touches, such as a greeting, load in the browser after the first paint.
- Course catalogue: mostly shared, changes when courses are added. ISR with a revalidation time of minutes, or on-demand revalidation when an editor publishes. Filters and search can run in the browser against a data endpoint.
- Course pages with prices: needs search traffic and fast LCP, but prices change. ISR with on-demand revalidation when the price changes. If the price is different by country or promotion, render the page statically and fetch the final price on the client, or segment the cache by region at the CDN. If a wrong price has legal weight, show the price from the checkout service at the point of purchase.
- Lesson player behind a login: personal, interactive, not indexed. CSR after an authenticated shell. Stream video separately, and prefetch the next lesson.
- Student dashboard: personal and changes with each visit. CSR with data from authenticated APIs. SSR is possible if the first view must show data without a spinner, at the cost of server work and care about caching private data.
Trade-offs to say aloud:
- Staleness against cost: more static means cheaper and faster, and fresher means more server work.
- Consistency: a static page and a live API can disagree for a short time. Decide where the source of truth is.
- Operational cost: one mixed framework is simpler than three separate systems.
- Measure after the launch with field LCP, INP and server cost per page.
No choice is permanent. The decision is revisited when traffic or data patterns change.
Key points
- Decide per route from personalisation, change rate, SEO need, interactivity and traffic.
- Static for shared and rarely changing pages. ISR for shared pages that change.
- CSR for private, interactive screens that are not indexed.
- SSR for per-request content that must be in the first HTML.
- State the staleness and cost trade-offs, and plan to measure.
Common mistakes
- Picking one strategy for the whole site.
- Using SSR for personal pages without thinking about caching private data.
- Ignoring price consistency between a cached page and the checkout.
- Choosing by trend instead of the data.
Follow-ups
- How would you show a price that depends on the visitor's country?
- What would change if the dashboard had to work offline?
- How would you measure whether the choices worked?
Tips
- Start with the five questions, because they show a method that works on any page.
- Give a reason in one sentence for each page.