Revert "add better logs to check cache issue"

This reverts commit 83ada844a3.
This commit is contained in:
Abhinav 2022-02-05 15:12:35 +05:30
parent e45f164246
commit b5d19d8ce7

View file

@ -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]);