Skip to content

Commit

Permalink
Merge pull request #501 from helium/feat/cloudflare
Browse files Browse the repository at this point in the history
Updating cache-control header
  • Loading branch information
deasydoesit authored Dec 5, 2023
2 parents 9c3fbe0 + 8930781 commit 145ac9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metadata-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ server.get<{ Params: { eccCompact: string } }>(
const assetJson = generateAssetJson(record, eccCompact);

// Needed to make Cloudflare to cache for longer than 1 day
reply.header("Cache-Control", "max-age=31536000"); // 1 year in seconds
reply.header("Cloudflare-CDN-Cache-Control", "max-age=31536000"); // 1 year in seconds

return assetJson;
}
Expand Down

0 comments on commit 145ac9b

Please sign in to comment.