(requestInit?: RequestInit)
| 936 | } |
| 937 | |
| 938 | function requestInitWithCache(requestInit?: RequestInit): RequestInit { |
| 939 | try { |
| 940 | const withCache: RequestInit = { |
| 941 | ...requestInit, |
| 942 | cache: "no-cache", |
| 943 | }; |
| 944 | |
| 945 | const _ = new Request("http://localhost", withCache); |
| 946 | |
| 947 | return withCache; |
| 948 | } catch (error) { |
| 949 | return requestInit ?? {}; |
| 950 | } |
| 951 | } |
| 952 | |
| 953 | async function fetchHead( |
| 954 | url: string, |
no outgoing calls
no test coverage detected
searching dependent graphs…