mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-01 22:29:47 +02:00
chore: reduce cache to 5min
This commit is contained in:
1 parent
6056605b85
commit
76b5d00fb8
1 file changed
+2
-2
+2
-2
@@ -33,8 +33,8 @@ router.get(
|
|||||||
res.attachment(
|
res.attachment(
|
||||||
anonymizedPath.substring(anonymizedPath.lastIndexOf("/") + 1)
|
anonymizedPath.substring(anonymizedPath.lastIndexOf("/") + 1)
|
||||||
);
|
);
|
||||||
// ache the file for 6 hours
|
// cache the file for 5min
|
||||||
res.header('Cache-Control', 'max-age=21600000');
|
res.header('Cache-Control', 'max-age=250000');
|
||||||
await f.send(res);
|
await f.send(res);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return handleError(error, res);
|
return handleError(error, res);
|
||||||
|
|||||||
Reference in new issue
Block a user