Open In App

HTTP headers | Server-Timing

The HTTP Server-Timing header is a response-type header. This header is used to communicate between two or more metrics and descriptions for a given request-response cycle from the user agent. The HTTP Server-Timing header is useful to any back-end server timing metrics like read or write in any databases, accessing files, etc. It can be used in the developer tools to keep track of the server on the PerformanceServerTiming interface. The HTTP Server-Timing helps to perform in different ways to communicate with the metrics, those are listed below: 

Syntax:  



Server-Timing: metricsname| metricsvalue | metricsdescription

Directives: There are no directives only need to mention the metrics name with all the details. 

Example: 



Server-Timing: cdn-cache
Server-Timing: edge; dur=33
Server-Timing: cdn-cache; desc=HIT
Server-Timing: cdn-cache; desc=HIT, edge; dur=1

To check this Server-Timing in action go to Inspect Element -> Network check the response header for Server-Timing like below, Server-Timing is highlighted.  

Supported Browsers: The browsers compatible with HTTP headers Server-Timing are listed below: 

 

Article Tags :