Server-Timing

The HTTP Server-Timing header contains one or more metrics for a specific HTTP request-response cycle.

Usage

The Server-Timing header is used to list and describe metrics that are used for a given HTTP request and accompanying HTTP response. Metrics can be listed by name alone, by name with a value, by name with a description, or by name with both value and description.

The metrics can be used for analysis and reporting, as well as troubleshooting network problems.

Example

In these examples, the metric being described is the cache read time:

Server-Timing: cache
Server-Timing: cache;desc=”Read from Cache”
Server-Timing: cache;desc=”Read from Cache”;dur=15.1

Takeaway

The Server-Timing header is used to expose and describe metrics for a specific HTTP request-response cycle, which can be used for analytical reporting and troubleshooting a message chain.

See also

Last updated: June 2, 2022