Rendering Strategies in Astro: SSR and SSG
Explore the core rendering strategies in Astro by understanding Server-Side Rendering (SSR) and Static Site Generation (SSG). Learn when to apply each method based on website needs, how to enable SSR with adapters, and how Astro supports hybrid rendering to optimize performance and interactivity.
We'll cover the following...
Astro originally started out as an
Defining the terms
In this lesson, we’ll briefly explore when to use SSR and when to use SSG. We’ll also delve into how to enable SSR in Astro. But, first, let’s define the terms.
SSR involves rendering web pages on the server and then sending the fully rendered page to the client’s browser. This means that when a user requests a page, the server dynamically generates the HTML content and sends it to the client. ...