MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / requestInitWithCache

Function requestInitWithCache

packages/core/src/v3/apiClient/core.ts:312–325  ·  view source on GitHub ↗
(requestInit?: RequestInit)

Source from the content-addressed store, hash-verified

310}
311
312function requestInitWithCache(requestInit?: RequestInit): RequestInit {
313 try {
314 const withCache: RequestInit = {
315 ...requestInit,
316 cache: "no-cache",
317 };
318
319 const _ = new Request("http://localhost", withCache);
320
321 return withCache;
322 } catch (error) {
323 return requestInit ?? {};
324 }
325}
326
327const addFormValue = async (form: FormData, key: string, value: unknown): Promise<void> => {
328 if (value === undefined) return;

Callers 1

_doZodFetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…