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?

  1. ACSR (client-side rendering)
  2. BSSR (server-side rendering)
  3. 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.
Practice this topic Back to topic

Books on Web Technology Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Web Technology Basics questions

  1. Which of the following correctly lists the elements in the first line (the request line) of an HTTP/1.1 request?
  2. Among HTTP methods, which of the following is not "safe" (not intended to change the state of resources on the server) but is "idempotent" (sending the same request any number of times leaves the same state as sending it once)?
  3. Which of the following correctly pairs an HTTP status code with its meaning?
  4. On a members-only website, an ordinary member who is logged in requests a page that only administrators may access. The server knows who the user is but does not allow access to this page. Which of the following status codes is most appropriate to return?
  5. A web API returns data in JSON format as the body of its response. Which of the following headers is generally added to the response to indicate the format of the body?