Skip to content

Commit

Permalink
fix: verified-fetch header cache-control typo (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki authored Feb 14, 2024
1 parent cbab8b0 commit ea39b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/verified-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ea39b48

Please sign in to comment.