static assets

Files served exactly as they are, such as images, fonts, CSS and compiled JavaScript.

In more detail

Because they do not change per request, static assets can be cached for a long time by browsers and CDNs, often with a content hash in the file name. They should be served directly without running application code.

Example

Next.js serves them from public/ and .next/static; middleware matchers usually exclude them.

Related terms

Taught in

References