Function: fileIdentity()
fileIdentity(
url,init?):FileIdentity
Defined in: identity.ts:33
Build the FileIdentity for a URL read with init. Compute it once
per file and pass it to every RangeReader.read for that file.
The identity exists because a merged request carries exactly one set of headers, credentials and mode: reads of one URL made with different inits cannot share a request or an in-flight stream, so they are different files to the reader. They do not share cached bytes either, since the reader cannot know that two inits return the same bytes. That costs a refetch after a token refresh on the same URL, and nothing more: a refreshed signed URL changes the URL anyway.
Parameters
url
string | URL
init?
RequestInit