Add cache control header for timestamped cover image requests

This commit is contained in:
mikiher 2024-02-26 14:00:25 +02:00
parent 3a99cc56b7
commit b47793c365

View File

@ -283,6 +283,9 @@ class LibraryItemController {
return res.sendStatus(404)
}
if (req.query.ts)
res.set('Cache-Control', 'private, max-age=86400')
if (raw) { // any value
if (global.XAccel) {
const encodedURI = encodeUriPath(global.XAccel + libraryItem.media.coverPath)