Skip to content
Middle+5 views

Were the store’s pages generated on demand when a user requested them, or created in advance as static pages?

Practice

Asked at

AI answer

It depends on the type of page and how up to date the data needs to be. For pages with content that changes infrequently, static HTML files (SSG) can be generated in advance and updated during the build or in response to an event. Catalogs and product pages are often generated dynamically—on the server for each request (SSR) or on the client by fetching data from an API. Sometimes ISR is used to periodically update statically generated pages. It’s important to clarify what was actually used in the project: the rendering approach affects data freshness, response speed, server load, and SEO.