From a375e3008aa0f92cb86fc6d9a5dcb91c9eae7893 Mon Sep 17 00:00:00 2001 From: Muffin Date: Mon, 19 Aug 2024 23:50:28 -0500 Subject: [PATCH] Disable some sendFile features --- src/server.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index 0c0081d..34ba5cd 100644 --- a/src/server.js +++ b/src/server.js @@ -392,7 +392,12 @@ app.get('/*', asyncHandler(async (req, res, next) => { } res.sendFile(filePath, { - headers + headers, + etag: false, + lastModified: false, + acceptRanges: false, + extensions: false, + index: false, }); } }));