performance icon indicating copy to clipboard operation
performance copied to clipboard

Server-Timing: allow `desc` field, make `dur` optional

Open swissspidy opened this issue 2 years ago • 3 comments

Feature Description

The duration field is not mandatory for Server-Timing.

And description is very useful to provide more details.

You could actually also only serve a description, e.g. pageType;desc="index"

IMHO this should be supported by this API to make it more flexible.

swissspidy avatar Nov 03 '23 10:11 swissspidy

Hi @swissspidy,

Could you please elaborate more about this issue

anandraj346 avatar Feb 20 '25 06:02 anandraj346

As per https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing the duration value is optional, and a description field is supported.

The PL plugin has a simple API to add Server-Timing headers where we would need to make this possible.

swissspidy avatar Feb 20 '25 07:02 swissspidy

Hi, I want to work on this issue as my first contribution. Can you please assign it to me?

dilipom13 avatar Jun 02 '25 17:06 dilipom13