()
| 7 | let hasherPromise: ReturnType<typeof xxhash> | null = null |
| 8 | |
| 9 | function getHasher() { |
| 10 | if (!hasherPromise) { |
| 11 | hasherPromise = xxhash() |
| 12 | } |
| 13 | return hasherPromise |
| 14 | } |
| 15 | |
| 16 | export async function computeCch(body: string): Promise<string> { |
| 17 | const hasher = await getHasher() |