瀏覽代碼

Merge pull request #10234 from overleaf/jpa-pdf-caching-ignore-404

[web] pdf-caching: stop counting 404s on the output.pdf as failure

GitOrigin-RevId: eb76570fdce3dd79b8e0ea961722e428446672ac
Jakob Ackermann 4 年之前
父節點
當前提交
85547ffe40
共有 1 個文件被更改,包括 0 次插入 和 2 次删除
  1. 0 2
      services/web/frontend/js/features/pdf-preview/util/pdf-caching-transport.js

+ 0 - 2
services/web/frontend/js/features/pdf-preview/util/pdf-caching-transport.js

@@ -83,8 +83,6 @@ export function generatePdfCachingTransportFactory(PDFJS) {
             OError.getFullInfo(err).url === this.url
           ) {
             // Do not consider a 404 on the main pdf url as pdf caching failure.
-            // Still, bail out during the initial launch phase.
-            metrics.failedOnce = true
             throw new PDFJS.MissingPDFException()
           }
           metrics.failedCount++