Set the cache override mode on a request
None
Do not override the behavior specified in the origin response’s cache control headers.
Pass
Do not cache the response to this request, regardless of the origin response’s headers.
Override
Override particular cache control settings using a CacheOverride
object.
The origin response’s cache control headers will be used for ttl and stale_while_revalidate if None.
Constructor parameter for the Fetch API Request
Usually this an URL to the resource you are requesting.
The ReadableStream class as specified by WHATWG
The TransformStream class as specified by WHATWG
The WritableStream class as specified by WHATWG
The global Console
instance
The global instance of the Fastly
builtin
This is a fetch specific implementation of addEventListener, and is very similar to handling FetchEvent from a Service Worker.
For Fastly C@E, this will be the entrypoint in handling your downstream request from your client.
Fetch resources from backends.
Note: Compute@Edge requires all outgoing requests to go to a predefined
backend, passed in
via the backend property on the init
object.
Note: Can only be used when processing requests, not during build-time initialization.
The resource to fetch, either a URL string or a Request object
An object containing settings to apply to the request
Generated using TypeDoc
Constructor parameter for the Fetch API Body and its implementations (
Request
, andResponse
)