Skip to content

Commit 23f0876

Browse files
authored
Add cache control header to manga page response (#430)
1 parent 6d88d90 commit 23f0876

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/kotlin/suwayomi/tachidesk/manga/controller/MangaController.kt

+2
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ object MangaController {
315315
future { Page.getPageImage(mangaId, chapterIndex, index, useCache) }
316316
.thenApply {
317317
ctx.header("content-type", it.second)
318+
val httpCacheSeconds = 1.days.inWholeSeconds
319+
ctx.header("cache-control", "max-age=$httpCacheSeconds")
318320
it.first
319321
}
320322
)

0 commit comments

Comments
 (0)