fix: remove cache from repository API

This commit is contained in:
tdurieux committed 2021-09-12 00:58:14 +02:00
1 parent 1469ebb092
commit 9550878d8f
1 file changed
+1 -1
+1 -1
View File
@@ -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 }));
@@ -123,6 +122,7 @@ router.get(
repo.source.type == "GitHubDownload";
}
res.header("Cache-Control", "no-cache");
res.json({
url: redirectURL,
download,