FetchEvent.resultingClientId
resultingClientId
は FetchEvent
インターフェイスの読み取り専用プロパティで、ページナビゲーション中に前のクライアントを置き換えるクライアントの id
です。
例えば、ページ A からページ B に移動する場合、resultingClientId
はページ B に関連するクライアントの id です。
フェッチリクエストがサブリソースのリクエストであるか、リクエストの宛先 (destination
) が report
である場合、resultingClientId
は空文字列になります。
値
文字列です。
例
js
self.addEventListener("fetch", (event) => {
console.log(event.resultingClientId);
});
仕様書
Specification |
---|
Service Workers # fetch-event-resultingclientid |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
resultingClientId |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.