diff --git a/services/filestore/app/js/FileController.js b/services/filestore/app/js/FileController.js index 0ccb332516..c2dffe76cb 100644 --- a/services/filestore/app/js/FileController.js +++ b/services/filestore/app/js/FileController.js @@ -62,6 +62,11 @@ function getFile(req, res, next) { return } + if (res.destroyed) { + fileStream.destroy() + return + } + if (req.query.cacheWarm) { fileStream.destroy() return res.sendStatus(200).end()