fix: replace etag with hard cache

This commit is contained in:
David Nguyen
2026-02-06 13:35:41 +11:00
parent c20affa286
commit cb6d6e46d0
3 changed files with 15 additions and 11 deletions
@@ -79,6 +79,8 @@ export const extractAndStorePdfImages = async (
pages: pageMetadata,
} satisfies TDocumentDataMeta);
// Only update metadata (page dimensions). Never update type, data, or initialData:
// DocumentData content is immutable so cache keys (documentDataId) stay valid.
const updatedDocumentData = await prisma.documentData.update({
where: { id: documentDataId },
data: {