Service Workers APIservice
The resultingClientId read-only property of the
FetchEvent interface is the Client.id of the
Client that replaces the previous client during a page
navigation.
For example, when navigating from page A to page B resultingClientId is
the ID of the client associated with page B.
If the fetch request is a subresource request or the request's
destination is
report, resultingClientId will be an empty string.
Value
A string.
Examples
self.addEventListener("fetch", (event) => {
console.log(event.resultingClientId);
});
Specifications
Browser compatibility
See also
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
