Added http server support for etags

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-09-18 18:50:26 -04:00
parent bd6c2d2a22
commit 19e202d5e1
3 changed files with 38 additions and 3 deletions

View File

@@ -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