Skip to content

Commit ad6f959

Browse files
sangwaclaude
andauthored
fix: add Cache-Control no-store header to attestation responses (#12)
Attestation responses are unique per request (fresh timestamp, request ID, hardware-signed evidence) and must not be cached by proxies or clients. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e18a936 commit ad6f959

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/attestation.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ func sendReport(c *fiber.Ctx, report *AttestationReport, reportDataJSON []byte)
310310
return fiber.NewError(fiber.StatusInternalServerError, "failed to marshal attestation report")
311311
}
312312
c.Set("Content-Type", "application/json")
313+
c.Set("Cache-Control", "no-store")
313314
return c.Send(body)
314315
}
315316

0 commit comments

Comments
 (0)