Release Shakeout Day 1 (#1591)
* Fixed an issue where reading list were not able to update their summary due to a duplicate title check. * Misc code smell cleanup * Updated .net dependencies and removed unneeded ones * Fixed an issue where removing a series from want to read list page wouldn't update the page correctly * Fixed age restriction not applied to Recommended page * Ensure that Genres and Tags are age restricted gated * Persons are now age gated as well * When you choose a cover, the new cover will properly be selected and will focus on it, in the cases there are many other covers available. * Fixed caching profiles * Added in a special hook when deleting a library to clear all series Relations before we delete
This commit is contained in:
parent
03bd2e9103
commit
b802e1e1b0
29 changed files with 404 additions and 153 deletions
|
|
@ -74,21 +74,21 @@ public class Startup
|
|||
new CacheProfile()
|
||||
{
|
||||
Duration = 60 * 10,
|
||||
Location = ResponseCacheLocation.Any,
|
||||
Location = ResponseCacheLocation.None,
|
||||
NoStore = false
|
||||
});
|
||||
options.CacheProfiles.Add("5Minute",
|
||||
new CacheProfile()
|
||||
{
|
||||
Duration = 60 * 5,
|
||||
Location = ResponseCacheLocation.Any,
|
||||
Location = ResponseCacheLocation.None,
|
||||
});
|
||||
// Instant is a very quick cache, because we can't bust based on the query params, but rather body
|
||||
options.CacheProfiles.Add("Instant",
|
||||
new CacheProfile()
|
||||
{
|
||||
Duration = 30,
|
||||
Location = ResponseCacheLocation.Any,
|
||||
Location = ResponseCacheLocation.None,
|
||||
});
|
||||
});
|
||||
services.Configure<ForwardedHeadersOptions>(options =>
|
||||
|
|
@ -300,13 +300,6 @@ public class Startup
|
|||
|
||||
app.Use(async (context, next) =>
|
||||
{
|
||||
// Note: I removed this as I caught Chrome caching api responses when it shouldn't have
|
||||
// context.Response.GetTypedHeaders().CacheControl =
|
||||
// new CacheControlHeaderValue()
|
||||
// {
|
||||
// Public = false,
|
||||
// MaxAge = TimeSpan.FromSeconds(10),
|
||||
// };
|
||||
context.Response.Headers[HeaderNames.Vary] =
|
||||
new[] { "Accept-Encoding" };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue