Web Technology Basics
Among the ways of producing the pages of a website, which of the following generates the HTML files of all pages in advance at the build stage and returns those files as they are in response to requests?
- ACSR (client-side rendering)
- BSSR (server-side rendering)
- CSSG (static site generation)
Show answer and explanation
Answer: C. SSG (static site generation)
A site made with SSG is a static site that does not run a program on the server for each request, so it can be delivered quickly as is from hosting services for static files or from a CDN, and it also has fewer parts that can be attacked. For example, a site that generates its question and glossary pages from content data at build time and delivers them is of this kind, and when the content changes, the pages are generated again. SSR is a dynamic method in which the server builds HTML for each request, and CSR sends minimal HTML and JavaScript and assembles the page inside the browser.
- A. CSR is a method in which the browser runs JavaScript to assemble the page.
- B. SSR is a method in which the server generates HTML for each request.
- C. Correct. The HTML is generated at build time, and delivery just returns files.