fix: Cannot scrub videos in Chrome when using local storage

closes #7517
This commit is contained in:
Tom Moor
2024-10-20 21:21:51 -04:00
parent 2ee7e0f832
commit 7250bd3bcb

View File

@@ -90,6 +90,7 @@ router.get(
contentType = attachment.contentType;
}
ctx.set("Accept-Ranges", "bytes");
ctx.set("Cache-Control", cacheHeader);
ctx.set("Content-Type", contentType);
ctx.attachment(fileName, {
@@ -104,6 +105,7 @@ router.get(
const range = getByteRange(ctx, stats.size);
if (range) {
ctx.status = 206;
ctx.set("Content-Length", String(range.end - range.start + 1));
ctx.set(
"Content-Range",