From 9550878d8fc30b9347e475a7a1f8f504770db3bc Mon Sep 17 00:00:00 2001 From: tdurieux Date: Sun, 12 Sep 2021 00:55:11 +0200 Subject: [PATCH] fix: remove cache from repository API --- src/routes/repository-public.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/repository-public.ts b/src/routes/repository-public.ts index bf10f6b..a81f458 100644 --- a/src/routes/repository-public.ts +++ b/src/routes/repository-public.ts @@ -48,7 +48,6 @@ router.get( const repo = await getRepo(req, res); if (!repo) return; try { - // ache the file for 6 hours res.header("Cache-Control", "no-cache"); res.json(await repo.anonymizedFiles({ includeSha: false })); @@ -122,7 +121,8 @@ router.get( !!config.ENABLE_DOWNLOAD && repo.source.type == "GitHubDownload"; } - + + res.header("Cache-Control", "no-cache"); res.json({ url: redirectURL, download,