mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
localize library changed messages per user
This commit is contained in:
@@ -162,17 +162,17 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
|
||||
|
||||
using (var message = GetHttpRequestMessage(options))
|
||||
{
|
||||
if (options.EnableResponseCache && cachedInfo != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(cachedInfo.Etag))
|
||||
{
|
||||
message.Headers.Add("If-None-Match", cachedInfo.Etag);
|
||||
}
|
||||
else if (cachedInfo.LastModified.HasValue)
|
||||
{
|
||||
message.Headers.IfModifiedSince = new DateTimeOffset(cachedInfo.LastModified.Value);
|
||||
}
|
||||
}
|
||||
//if (options.EnableResponseCache && cachedInfo != null)
|
||||
//{
|
||||
// if (!string.IsNullOrEmpty(cachedInfo.Etag))
|
||||
// {
|
||||
// message.Headers.Add("If-None-Match", cachedInfo.Etag);
|
||||
// }
|
||||
// else if (cachedInfo.LastModified.HasValue)
|
||||
// {
|
||||
// message.Headers.IfModifiedSince = new DateTimeOffset(cachedInfo.LastModified.Value);
|
||||
// }
|
||||
//}
|
||||
|
||||
if (options.ResourcePool != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user