Skip to main content
Version: 3.13.0

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 optional
    • start : 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.