This is an automated email from the ASF dual-hosted git repository. jeffreyh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push: new 83448747388 [fix]:add timestamp to load workerjs (#1752) 83448747388 is described below commit 83448747388d128872aefd4377a3ca288dcd568f Author: yangon <2689991...@qq.com> AuthorDate: Fri Jan 10 11:57:43 2025 +0800 [fix]:add timestamp to load workerjs (#1752)  --- src/theme/SearchBar/searchByWorker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/theme/SearchBar/searchByWorker.js b/src/theme/SearchBar/searchByWorker.js index 8feffdc8d88..ac747cf390a 100644 --- a/src/theme/SearchBar/searchByWorker.js +++ b/src/theme/SearchBar/searchByWorker.js @@ -7,8 +7,9 @@ function getWorkerURL(url) { function getRemoteWorker() { if (process.env.NODE_ENV === 'production' && !remoteWorkerPromise) { remoteWorkerPromise = (async () => { + const timestamp = Date.now(); const Remote = Comlink.wrap( - new Worker(getWorkerURL('https://cdnd.selectdb.com/worker.js')), + new Worker(getWorkerURL(`https://cdnd.selectdb.com/worker.js?_=${timestamp}`)), ); return await new Remote(); })(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org