mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 07:09:02 +02:00
Merge pull request #10156 from overleaf/jpa-web-disable-prefetch
[web] pdf-caching: double down on disabling of prefetching GitOrigin-RevId: 60ccea883786bad306a747b5a182982bc648bbbd
This commit is contained in:
@@ -4,7 +4,7 @@ import { trackPdfDownloadEnabled } from './pdf-caching-flags'
|
||||
|
||||
// VERSION should get incremented when making changes to caching behavior or
|
||||
// adjusting metrics collection.
|
||||
const VERSION = 7
|
||||
const VERSION = 8
|
||||
|
||||
// editing session id
|
||||
const EDITOR_SESSION_ID = uuid()
|
||||
|
||||
@@ -648,7 +648,8 @@ export async function fetchRange({
|
||||
preprocessFileOnce({ file, usageScore, cachedUrls })
|
||||
const startXRefTableRange =
|
||||
Math.floor(file.startXRefTable / PDF_JS_CHUNK_SIZE) * PDF_JS_CHUNK_SIZE
|
||||
const prefetchXRefTable = startXRefTableRange > 0 && start === 0
|
||||
const prefetchXRefTable =
|
||||
prefetchingEnabled && startXRefTableRange > 0 && start === 0
|
||||
const prefetched = getMatchingChunks(file.prefetched, start, end)
|
||||
|
||||
// Check that handling the range request won't trigger excessive sub-requests,
|
||||
|
||||
Reference in New Issue
Block a user