mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
prevent browser from caching images/files, fixes #2378
This commit is contained in:
@@ -20,6 +20,7 @@ function returnImage(req, res) {
|
||||
}
|
||||
|
||||
res.set('Content-Type', image.mime);
|
||||
res.set("Cache-Control", "no-cache, no-store, must-revalidate");
|
||||
|
||||
res.send(image.getContent());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user