CacheEntry.body
The body
method of the CacheEntry
interface retrieves the cached item contents as a ReadableStream
.
Only one stream can be active at a time for a given CacheEntry
. An error will be thrown if a stream is already active for this CacheEntry
.
Syntax
body(options)
Parameters
options
: object optionalstart
: number- The offset from which to start the range.
end
: number- How long the range should be.
Return value
A ReadableStream
which contains the cached item contents.