From ea39b489625c0ca856b62ab91cfaedd66b25bec7 Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Wed, 14 Feb 2024 09:28:25 -0800 Subject: [PATCH] fix: verified-fetch header cache-control typo (#433) --- src/verified-fetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/verified-fetch.ts b/src/verified-fetch.ts index 0719a6e..4dc3a92 100644 --- a/src/verified-fetch.ts +++ b/src/verified-fetch.ts @@ -339,7 +339,7 @@ export class VerifiedFetch { } response.headers.set('etag', cid.toString()) // https://specs.ipfs.tech/http-gateways/path-gateway/#etag-response-header - response.headers.set('cache-cotrol', 'public, max-age=29030400, immutable') + response.headers.set('cache-control', 'public, max-age=29030400, immutable') response.headers.set('X-Ipfs-Path', resource.toString()) // https://specs.ipfs.tech/http-gateways/path-gateway/#x-ipfs-path-response-header if (ipfsRoots != null) {