We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b12dc1d commit df67bc6Copy full SHA for df67bc6
packages/fetch-http-handler/src/fetch-http-handler.ts
@@ -112,8 +112,12 @@ export class FetchHttpHandler implements HttpHandler<FetchHttpHandlerConfig> {
112
headers: new Headers(request.headers),
113
method: method,
114
credentials,
115
- cache: this.config!.cache ?? "default",
116
};
+ // cache property is not supported in workerd runtime
117
+ // TODO: can we feature detect support for cache and not set this property when not supported?
118
+ if (this.config?.cache) {
119
+ requestOptions.cache = this.config.cache;
120
+ }
121
122
if (body) {
123
requestOptions.duplex = "half";
0 commit comments