From 76b5d00fb88a632f6a064b9e71ada848fda25a6f Mon Sep 17 00:00:00 2001 From: tdurieux Date: Thu, 9 Sep 2021 14:41:53 +0200 Subject: [PATCH] chore: reduce cache to 5min --- src/routes/file.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/file.ts b/src/routes/file.ts index 41e2df3..bc6b4fa 100644 --- a/src/routes/file.ts +++ b/src/routes/file.ts @@ -33,8 +33,8 @@ router.get( res.attachment( anonymizedPath.substring(anonymizedPath.lastIndexOf("/") + 1) ); - // ache the file for 6 hours - res.header('Cache-Control', 'max-age=21600000'); + // cache the file for 5min + res.header('Cache-Control', 'max-age=250000'); await f.send(res); } catch (error) { return handleError(error, res);