mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-12 09:13:00 +01:00
Added http server support for etags
This commit is contained in:
parent
bd6c2d2a22
commit
19e202d5e1
@@ -137,6 +137,23 @@ namespace MediaBrowser.Api.HttpHandlers
|
||||
return date;
|
||||
}
|
||||
|
||||
protected override async Task<string> GetETag()
|
||||
{
|
||||
string tag = string.Empty;
|
||||
|
||||
var entity = await GetSourceEntity().ConfigureAwait(false);
|
||||
|
||||
foreach (var processor in Kernel.Instance.ImageProcessors)
|
||||
{
|
||||
if (processor.IsConfiguredToProcess(entity, ImageType, ImageIndex))
|
||||
{
|
||||
tag += processor.ProcessingConfigurationDateLastModifiedUtc.Ticks.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
return tag;
|
||||
}
|
||||
|
||||
private int ImageIndex
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user