From a113b7e677843741290bd6f816b53217467cf582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Mon, 7 Jul 2025 17:27:41 +0200 Subject: [PATCH] Fixed cache control header --- .../com/jeluchu/features/anime/services/AnimeService.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/kotlin/com/jeluchu/features/anime/services/AnimeService.kt b/src/main/kotlin/com/jeluchu/features/anime/services/AnimeService.kt index b5d6248..af5bf15 100644 --- a/src/main/kotlin/com/jeluchu/features/anime/services/AnimeService.kt +++ b/src/main/kotlin/com/jeluchu/features/anime/services/AnimeService.kt @@ -126,10 +126,7 @@ class AnimeService( directoryCollection.aggregate(aggregates).firstOrNull()?.let { anime -> val info = documentToMoreInfoEntity(anime) - call.response.headers.append("Cache-Control", "no-cache, no-store, must-revalidate, private") - call.response.headers.append("Pragma", "no-cache") - call.response.headers.append("Expires", "0") - call.response.headers.append("Vary", "*") + call.response.headers.append("Cache-Control", "no-store") call.respond(HttpStatusCode.OK, Json.encodeToString(info)) } ?: call.respond(HttpStatusCode.NotFound, ErrorResponse(ErrorMessages.AnimeNotFound.message))