From 742366035f8c9b2fe66bbe06783bc068d8baab30 Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Sun, 10 Nov 2024 21:46:57 +0100 Subject: [PATCH] Fix issue when streaming through Cloudflare --- app/src/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/render.ts b/app/src/render.ts index 9b58570..0f3414e 100644 --- a/app/src/render.ts +++ b/app/src/render.ts @@ -24,7 +24,7 @@ class Render { const startByte = parseInt(start, 10) || 0 const endByte = startByte + 2499999 headers.range = `bytes=${startByte}-${endByte}` - headerList.push('accept-ranges', 'cache-control', 'content-range') + headerList.push('accept-ranges', 'content-range') res.status(206) // Partial Content } const url = immich.buildUrl(immich.apiUrl() + '/assets/' + encodeURIComponent(asset.id) + subpath, {