HugoPress reference site

Why static sites win on the edge

No database round-trips, no runtime — just pre-rendered HTML served as close to the reader as possible.

Eva Křížová Eva Křížová 1 min read
Why static sites win on the edge

When a user opens a dynamic page, the server typically reaches into a database, assembles HTML, and only then replies. On a static site that work is already done at build time — all that is left for the request is to ship a finished file.

What you save

  • The database round-trip — gone; the content is already in the HTML.
  • Runtime time — no PHP/Node process on the critical path.
  • Distance — the file sits in a CDN POP a few dozen kilometres from the reader.

Measurable impact

MetricDynamicStatic on CDN
TTFB~280 ms~25 ms
LCP (median)2.4 s0.9 s
Cost per requestnon-trivial~zero

The fastest database query is the one that never has to run.

And the dynamic bits?

Comments, search and forms are handled progressively — the static shell ships first and interactivity hydrates from a small chunk of client-side JavaScript. The article body, though, stays pre-rendered and instantly readable.

How that content is produced in the first place is covered in Building a headless CMS on Hugo.

Eva Křížová

By

Eva Křížová

Performance engineer, INTEVIA

Tunes web delivery, measures Core Web Vitals, and believes the fastest query is the one that never runs.

Related articles

i18n Content Hugo

Multilingual the painless way

Multilingual support is a source of pain in most systems — duplicated templates, drifting translations, broken links between languages. Hugo handles it surprisingly elegantly, and HugoPress only smooths a few rough edges. One layout, two languages The section data lives in each page’s front matter; the layout is shared. The same layouts/blog/list.html template reads .Params.* and renders both the cs and en variant — no duplicated logic. Pairing via translationKey Give both versions the same translationKey:

Read more