Server-Timing Header: What Actually Works
An HTTP response header that reports how long server-side steps took, such as database queries or cache lookups, so the timings appear in browser tools and monitoring.
On this page
What is at stake
When Time to First Byte is slow, Server-Timing shows which part of the backend is responsible without needing access to server logs.
The playbook
- Report timings for database, cache and rendering steps
- Use short, consistent metric names
- Collect the values in real user monitoring
- Limit detailed timings to trusted environments if sensitive
- Compare timings before and after backend changes
Where it goes wrong
Avoid:
- Exposing sensitive internal names publicly
- Dozens of metrics on every response
- Measuring only in production without a baseline
- Ignoring CDN timing between browser and origin
The numbers behind it
| Measure | Figure |
|---|---|
| Header | Server-Timing, with named metrics and durations |
| Visibility | shown in the Timing section of browser DevTools |
| JavaScript access | available through the PerformanceServerTiming interface |
| Security | timings can reveal internal details, so exposure should be controlled |
Getting outside help
When to hand it over: Bring in help when server response time is poor and the slow backend step is unknown.
Where this comes from
- MDN Web Docs — Server-Timing
- web.dev — Optimize Time to First Byte
The figures and practices above come from the sources listed.
Working on something like this?
We take on Performance & Accessibility work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.