diff --git a/public/script/admin.js b/public/script/admin.js index b5ff453..3839879 100644 --- a/public/script/admin.js +++ b/public/script/admin.js @@ -20,11 +20,11 @@ angular $scope.query = { page: 1, limit: 25, - sort: "source.repositoryName", + sort: "lastView", search: "", - ready: true, - expired: true, - removed: true, + ready: false, + expired: false, + removed: false, error: true, preparing: true, }; diff --git a/src/AnonymizedFile.ts b/src/AnonymizedFile.ts index 0d9efed..ef469b3 100644 --- a/src/AnonymizedFile.ts +++ b/src/AnonymizedFile.ts @@ -218,6 +218,7 @@ export default class AnonymizedFile { res.header("Accept-Ranges", "none"); try { const fileInfo = await storage.fileInfo(this.originalCachePath); + // the text files may be anonymized and therefore the size may be different if (!isTextFile(this.anonymizedPath) && fileInfo.size) { res.header("Content-Length", fileInfo.size.toString()); }