Merge pull request #2694 from mikiher/client-image-caching

Client side cover image caching
This commit is contained in:
advplyr 2024-03-01 17:48:08 -06:00 committed by GitHub
commit b4eed3bad2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

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)