|
@@ -472,6 +472,7 @@ function checkChunkResponse(response, estimatedSize, init) {
|
|
|
export async function fallbackRequest({ url, start, end, abortSignal }) {
|
|
export async function fallbackRequest({ url, start, end, abortSignal }) {
|
|
|
try {
|
|
try {
|
|
|
const init = {
|
|
const init = {
|
|
|
|
|
+ cache: 'no-store',
|
|
|
headers: { Range: `bytes=${start}-${end - 1}` },
|
|
headers: { Range: `bytes=${start}-${end - 1}` },
|
|
|
signal: abortSignal,
|
|
signal: abortSignal,
|
|
|
}
|
|
}
|
|
@@ -809,7 +810,10 @@ export async function fetchRange({
|
|
|
coalescedDynamicChunks.push({
|
|
coalescedDynamicChunks.push({
|
|
|
chunk: dynamicChunks[0],
|
|
chunk: dynamicChunks[0],
|
|
|
url,
|
|
url,
|
|
|
- init: { headers: { Range: `bytes=${byteRanges}` } },
|
|
|
|
|
|
|
+ init: {
|
|
|
|
|
+ cache: 'no-store',
|
|
|
|
|
+ headers: { Range: `bytes=${byteRanges}` },
|
|
|
|
|
+ },
|
|
|
})
|
|
})
|
|
|
break
|
|
break
|
|
|
case dynamicChunks.length <= MULTI_PART_THRESHOLD:
|
|
case dynamicChunks.length <= MULTI_PART_THRESHOLD:
|
|
@@ -820,7 +824,10 @@ export async function fetchRange({
|
|
|
coalescedDynamicChunks.push({
|
|
coalescedDynamicChunks.push({
|
|
|
chunk,
|
|
chunk,
|
|
|
url,
|
|
url,
|
|
|
- init: { headers: { Range: `bytes=${chunk.start}-${chunk.end - 1}` } },
|
|
|
|
|
|
|
+ init: {
|
|
|
|
|
+ cache: 'no-store',
|
|
|
|
|
+ headers: { Range: `bytes=${chunk.start}-${chunk.end - 1}` },
|
|
|
|
|
+ },
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
break
|
|
break
|
|
@@ -828,7 +835,10 @@ export async function fetchRange({
|
|
|
coalescedDynamicChunks.push({
|
|
coalescedDynamicChunks.push({
|
|
|
chunk: dynamicChunks,
|
|
chunk: dynamicChunks,
|
|
|
url,
|
|
url,
|
|
|
- init: { headers: { Range: `bytes=${byteRanges}` } },
|
|
|
|
|
|
|
+ init: {
|
|
|
|
|
+ cache: 'no-store',
|
|
|
|
|
+ headers: { Range: `bytes=${byteRanges}` },
|
|
|
|
|
+ },
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|