mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-30 14:09:33 +02:00
fix: remove cache from repository API
This commit is contained in:
1 parent
1469ebb092
commit
9550878d8f
1 file changed
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user