Skip to content

Commit

Permalink
Fixes #1407
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksrandall authored Sep 20, 2024
1 parent b12dc1d commit df67bc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/fetch-http-handler/src/fetch-http-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@ export class FetchHttpHandler implements HttpHandler<FetchHttpHandlerConfig> {
headers: new Headers(request.headers),
method: method,
credentials,
cache: this.config!.cache ?? "default",
};
// cache property is not supported in workerd runtime
// TODO: can we feature detect support for cache and not set this property when not supported?
if (this.config?.cache) {
requestOptions.cache = this.config.cache;
}

if (body) {
requestOptions.duplex = "half";
Expand Down

0 comments on commit df67bc6

Please sign in to comment.