← Back to release summary

Fetch API: Request#url includes the URL fragment

Category
Network / Connectivity
Type
New or changed feature
Status
Enabled by default (Chrome 59)
Intent stage
None

Summary

Request#url now includes the URL fragment, as per the spec. Before Chrome 59, the fragment was stripped out. This means service workers can see the URL fragment in the 'fetch' event handler.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/API/Request/url https://github.com/w3c/ServiceWorker/issues/854 https://github.com/whatwg/fetch/issues/214

View on chromestatus.com