Files
appwrite/app/controllers
loks0nandClaude Opus 4.7 957a588786 fix(cache): verify md5 signature on load, drop magic-byte check
Replace the output-side magic-byte check with a read-time integrity
verification in the shared cache middleware.

The cache document already stores `signature = md5(payload)` at save
time, but the load path never verified it. If the filesystem blob and
the cache document drift — a partial write, disk corruption, or a bad
entry that predates the content-type save guard — the mismatched md5
surfaces here and we treat the hit as a miss, purge, and let the action
regenerate the response.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 11:38:51 +01:00
..