mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	prevent browser from caching images/files, fixes #2378
This commit is contained in:
		| @@ -60,6 +60,7 @@ function downloadNoteFile(noteId, res, contentDisposition = true) { | ||||
|         res.setHeader('Content-Disposition', utils.getContentDisposition(filename)); | ||||
|     } | ||||
|  | ||||
|     res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); | ||||
|     res.setHeader('Content-Type', note.mime); | ||||
|  | ||||
|     res.send(note.getContent()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user