From 644d92a71e9f117b14d17b1eae87955cc8006134 Mon Sep 17 00:00:00 2001 From: vcheckzen <18008498+vcheckzen@users.noreply.github.com> Date: Tue, 29 Oct 2024 05:39:45 +0800 Subject: [PATCH] fix: potential cache corruption --- front-end/index.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/front-end/index.html b/front-end/index.html index fc2d7db6..206e9d09 100644 --- a/front-end/index.html +++ b/front-end/index.html @@ -1645,11 +1645,8 @@ loadedPages.files = loadedPages.files.concat(data.files); loadedPages.skipToken = data.skipToken; - window.fileCache.set( - window.backForwardCache.current, - loadedPages - ); - renderPage(loadedPages, null, true); + window.fileCache.set(loadedPages.parent, loadedPages); + renderPage(null, loadedPages, true); isRequestInProgress = false; }, fallback @@ -1897,7 +1894,7 @@ window.api.url, window.api.formatPayload( path, - window.fileCache.get(`${path}/.password`), + window.fileCache.get(`${path}/.password`) // Orderby is not working, do not send it. // { orderby: orderby } ),