mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #12994 from overleaf/jpa-pdf-caching-fallback
[web] bring back support for proxies without HTTP-Range request support GitOrigin-RevId: f0a4863ee175c332c9dea7da28987f293a903e63
This commit is contained in:
parent
caeceba28c
commit
b6877cb4dd
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ export function generatePdfCachingTransportFactory(PDFJS) {
|
|||
})
|
||||
const isExpectedFailureOnNewCompileDomain = err =>
|
||||
isSplitTestEnabled('force-new-compile-domain') &&
|
||||
isURLOnUserContentDomain(OError.getFullInfo(err).url)
|
||||
isURLOnUserContentDomain(OError.getFullInfo(err).url) &&
|
||||
OError.getFullInfo(err).responseSize !== this.pdfFile.size
|
||||
|
||||
const isStaleOutputRequest = () =>
|
||||
performance.now() - this.startTime > STALE_OUTPUT_REQUEST_THRESHOLD_MS
|
||||
|
|
Loading…
Reference in a new issue