mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
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>