Skip to content

Commit

Permalink
Disable some sendFile features
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Aug 20, 2024
1 parent c003ec7 commit a375e30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
}));
Expand Down

0 comments on commit a375e30

Please sign in to comment.