From b5d19d8ce76e23aea19ec40f5574716e71b08bab Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sat, 5 Feb 2022 15:12:35 +0530 Subject: [PATCH] Revert "add better logs to check cache issue" This reverts commit 83ada844a3275dce3c3cac368f72a0abd1a02922. --- src/services/publicCollectionDownloadManager.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/services/publicCollectionDownloadManager.ts b/src/services/publicCollectionDownloadManager.ts index c4a61a917..1271a2094 100644 --- a/src/services/publicCollectionDownloadManager.ts +++ b/src/services/publicCollectionDownloadManager.ts @@ -38,14 +38,9 @@ class PublicCollectionDownloadManager { const cacheResp: Response = await thumbnailCache?.match( file.id.toString() ); + console.log(cacheResp); if (cacheResp) { - console.log('cache hit', file.id); - const cacheBlob = await cacheResp.blob(); - const cacheURL = URL.createObjectURL(cacheBlob); - console.log(file.id, cacheBlob?.size, cacheURL); - return cacheURL; - } else { - console.log('cache miss', file.id); + return URL.createObjectURL(await cacheResp.blob()); } const thumb = await this.downloadThumb(token, file); const thumbBlob = new Blob([thumb]);