Response.redirect()
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2017年10月.
Response
接口的 redirect()
方法返回一个可以重定向到指定 URL 的 Response
。
备注: 主要和 ServiceWorker API 有关。A controlling service worker could intercept a page's request and redirect it as desired. This will actually lead to a real redirect if a service worker sends it upstream.