mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-23 20:29:37 +00:00
Merge pull request #2694 from mikiher/client-image-caching
Client side cover image caching
This commit is contained in:
commit
b4eed3bad2
3 changed files with 7 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue