Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
Public caching causes an issue with cache validation on browser causing images not to be cached correctly. Made private to ensure we get proper images each load.
Joseph Milazzo52b91a9b92e2
diff --git a/API/Controllers/LibraryController.cs b/API/Controllers/LibraryController.csindex 2a0192955..4b8c776df 100644--- a/API/Controllers/LibraryController.cs+++ b/API/Controllers/LibraryController.cs@@ -228,11 +228,6 @@ namespace API.Controllers[HttpGet("search")]public async Task<ActionResult<IEnumerable<SearchResultDto>>> Search(string queryString){- // TODO: Add indecies to DB for the searched fields- //NOTE: What about normalizing search query and only searching against normalizedname in Series?- // So One Punch would match One-Punch- // This also means less indexes we need.- // TODO: Add indexes of what we are searching onqueryString = queryString.Replace(@"%", "");var user = await _unitOfWork.UserRepository.GetUserByUsernameAsync(User.GetUsername());diff --git a/API/DTOs/SearchResultDto.cs b/API/DTOs/SearchResultDto.csindex d6df106e3..114b3d03b 100644--- a/API/DTOs/SearchResultDto.cs+++ b/API/DTOs/SearchResultDto.cs@@ -6,7 +6,6 @@public string Name { get; init; }public string OriginalName { get; init; }public string SortName { get; init; }- //public byte[] CoverImage { get; init; } // This should be optional or a thumbImage (much smaller) // TODO: Refactor to lazy loading// Grouping informationpublic string LibraryName { get; set; }diff --git a/API/Parser/Parser.cs b/API/Parser/Parser.csindex 828f7cc86..1e860ab28 100644--- a/API/Parser/Parser.cs+++ b/API/Parser/Parser.cs@@ -422,7 +422,7 @@ namespace API.Parserpublic static string Normalize(string name){- return name.ToLower().Replace("-", "").Replace(" ", "");+ return name.ToLower().Replace("-", "").Replace(" ", "").Replace(":", "");}diff --git a/API/Startup.cs b/API/Startup.csindex df4d0d41a..e0333217c 100644--- a/API/Startup.cs+++ b/API/Startup.cs@@ -105,11 +105,11 @@ namespace APIcontext.Response.GetTypedHeaders().CacheControl =new Microsoft.Net.Http.Headers.CacheControlHeaderValue(){- Public = true,+ Public = false,MaxAge = TimeSpan.FromSeconds(10)};- // context.Response.Headers[Microsoft.Net.Http.Headers.HeaderNames.Vary] =- // new string[] { "Accept-Encoding" };+ context.Response.Headers[Microsoft.Net.Http.Headers.HeaderNames.Vary] =+ new string[] { "Accept-Encoding" };await next();});