skip to content

Meta-framework Concepts

When a route's HTML is built, how URLs map to nested layouts, where data is read and cached, and what the server and browser each run. Asked because the mode is an architecture decision, not a flag.

on this pageshow

explore

questions

156 · 5 sections

When a meta-framework refreshes a prerendered page out of band instead of rebuilding the site, what does a visitor receive while that render runs?

level: juniorimportance: must knowfreq 70%
basics
~20 s

The stored prerendered copy, served immediately. The refreshed render runs outside that request and replaces the stored copy when it finishes, so only later visitors see the new HTML: nobody waits for the refresh, but whoever arrives during it gets the older page.

open as a page

In a meta-framework, what does prerendering a route at build time mean, and what happens when a visitor requests it?

level: juniorimportance: must knowfreq 72%
basics
~20 s

Prerendering at build time runs a route's data loading and render once, during the build, and writes the finished HTML into the build output. Every visitor is then served that same file, with no per-request fetch or render.

open as a page

In a server-rendered route, what is hydration, and what must the browser be handed for it to happen?

level: juniorimportance: must knowfreq 80%
basics
~20 s

Hydration is a server-rendered route's second delivery: after the finished HTML paints, the browser downloads the component code and the data the server rendered with, then attaches behaviour to the existing markup instead of rebuilding it.

open as a page

When a meta-framework renders a route's HTML on the server for every request, what does the browser receive and why does it help?

level: juniorimportance: must knowfreq 82%
basics
~20 s

The browser receives a finished document: the framework matched the URL, ran that route's server-side data work and rendered markup before replying. Content is visible in the first paint, and machines that never run scripts can read it.

open as a page

In a meta-framework that prerenders routes at build time, which inputs make a route's output request-dependent?

level: juniorimportance: must knowfreq 72%
basics
~20 s

Input that arrives with the HTTP request and differs between callers: the cookie jar, request headers, the query string, the caller's address. Reading a database, a config value or a path parameter does not, by itself.

open as a page

In a meta-framework whose routes come from the directory tree, what makes one file a page at a URL and its neighbour not?

level: juniorimportance: must knowfreq 74%
basics
~20 s

A file becomes a route only when its name matches the router's reserved route-module name, at its position under the routes directory; the folder chain becomes the URL. Every other file there is colocated code the router ignores.

open as a page

In a multi-language site, what does carrying the language in a URL path segment give you that a cookie alone does not?

level: juniorimportance: must knowfreq 62%
basics
~20 s

A language in the path gives every translation its own address, so it can be linked, bookmarked, prerendered, crawled and cached as a distinct page. A cookie-only language makes one address return different text to different visitors.

open as a page

In a meta-framework where route segments declare head entries as data, how is a URL's head built?

level: juniorimportance: must knowfreq 72%
basics
~20 s

Each matched route segment declares head entries as data. The framework collects them along the matched chain, merges them into one set, and writes that into the document head before the body, so every URL ships its own head.

open as a page

When a client router handles an in-app link click, what does it fetch instead of a full HTML document?

level: juniorimportance: must knowfreq 72%
basics
~20 s

It fetches a payload for only the route segments that differ between the current URL and the target — their data and, if missing, their code — then swaps those segments into the page that is already running.

open as a page

In a file-based router, what does it mean that one URL resolves to a chain of nested layouts rather than a single page module?

level: juniorimportance: must knowfreq 68%
basics
~20 s

Each matched path segment can contribute a route module, and the framework nests them outermost first: the top level renders the document shell, every level below renders inside its parent's slot, and the innermost module renders the page.

open as a page

In a meta-framework, how does a cached copy kept on the server differ in scope from one kept in the browser tab?

level: juniorimportance: must knowfreq 62%
basics
~20 s

A copy kept on the server is shared: any request matching its key can be served it, including another visitor's. A copy in the browser tab is private to that browser and gone on a full page load.

open as a page

On a server-rendered page, why is the data the server already read embedded in the page instead of fetched again in the browser?

level: juniorimportance: must knowfreq 72%
basics
~20 s

Embedding the server's already-loaded result lets the browser's data cache start full, so the first client render reads it from cache instead of issuing a second request for data the user is already looking at.

open as a page

A meta-framework serves a route from a stored copy. After the underlying data changes, what makes visitors see the new value?

level: juniorimportance: must knowfreq 70%
basics
~20 s

A stored copy never learns that the data behind it changed. It becomes unusable only when the application names that copy and marks it stale, or when its freshness window elapses and the next request produces the value again.

open as a page

In a meta-framework, what does a route module's own server-side data fetch do before the route's HTML exists?

level: juniorimportance: must knowfreq 78%
basics
~20 s

A route's server-side data fetch runs when the URL matches, gathers the data that route needs, and hands it to the render, so the first HTML already carries the content and the browser needs no follow-up request.

open as a page

In a meta-framework, what does it mean for a route to handle a write itself instead of posting to a separate API?

level: juniorimportance: must knowfreq 72%
basics
~20 s

A route-handled write is a server-side function the framework publishes at its own URL, so an ordinary HTML form can POST straight to it. The framework runs it on the server, then re-renders the route or follows a redirect.

open as a page

Why does a server-rendered route embed a block of serialized data in the HTML alongside the markup it already rendered?

level: juniorimportance: must knowfreq 62%
basics
~20 s

Markup is output, not input - it never says which values produced it. The embedded payload hands the client the same data the server rendered from, so the client can rebuild the identical tree without scraping the DOM or refetching.

open as a page

Moving a route's server code from one region to many locations near users: what does that make faster, and what stays the same?

level: juniorimportance: must knowfreq 56%
basics
~20 s

Running a route's server code near the user shortens only the network trip between browser and server. The work inside the handler takes the same time, and the distance from that code to its data usually gets longer.

open as a page

In a meta-framework build, what decides whether an environment variable's value reaches the browser bundle?

level: juniorimportance: must knowfreq 72%
basics
~20 s

The variable's name decides. The build substitutes into client code only names carrying a reserved public prefix, or names on an explicit allowlist; every other name is readable only in code that runs on the server.

open as a page

In a meta-framework's file-based router, what is a non-document route, and how does it differ from a page route?

level: juniorimportance: must knowfreq 68%
basics
~20 s

A non-document route is a file in the same router tree that answers an HTTP request with JSON, a file, a stream or a redirect instead of an HTML page, sharing the pages' project, build and deployment.

open as a page

In a meta-framework, what does a per-request interception step run in front of, and what can it return?

level: juniorimportance: must knowfreq 72%
basics
~20 s

A per-request interception step runs for every matching request before the framework resolves a route, renders it, or looks in its cache. It can continue, rewrite to another path, redirect, answer directly, or attach headers and cookies.

open as a page

In a meta-framework, what is a deployment adapter and what does it change about the build output?

level: juniorimportance: must knowfreq 68%
basics
~20 s

A deployment adapter translates one framework build into the exact shape a chosen host runs: a startable server entry, per-request function bundles, an edge bundle, or plain files plus routing rules. Same application code, different packaging.

open as a page

What kinds of files does a meta-framework's production build leave in its output directory, and what is each for?

level: juniorimportance: must knowfreq 68%
basics
~10 s

A production build emits content-hashed client assets, prerendered documents for routes resolved at build time, a server bundle for routes that were not, and manifests mapping routes and assets to those files.

open as a page

In a meta-framework's development server, how is a route served differently from the way the built output serves it?

level: juniorimportance: must knowfreq 72%
basics
~20 s

A development server compiles a route on demand and renders it again on every request, with prerendering skipped and the cache tiers switched off. The built output compiles once ahead of time and reuses whatever it is allowed to reuse.

open as a page

In a meta-framework app running as several instances behind a load balancer, what does a shared cache store give you that per-instance memory does not?

level: juniorimportance: must knowfreq 62%
basics
~20 s

A shared store keeps one copy of regenerated pages and cached data that every instance reads and writes, so all instances agree. Per-instance memory gives each process its own copy, and those copies drift apart.

open as a page

In a meta-framework, what is a static export, and what must a file host do to serve it?

level: juniorimportance: must knowfreq 66%
basics
~20 s

A static export runs the build once and emits only files - HTML documents, JavaScript, CSS, media - with no server process behind them. The host's job is to map each URL to a file and return its bytes.

open as a page