pass along date modified

This commit is contained in:
Luke Pulverenti
2016-07-17 12:59:40 -04:00
parent 537e774f5f
commit b6979fa28a
4 changed files with 36 additions and 26 deletions

View File

@@ -331,7 +331,11 @@ namespace MediaBrowser.Server.Implementations.HttpServer
options.ContentType = MimeTypes.GetMimeType(path);
}
options.DateLastModified = _fileSystem.GetLastWriteTimeUtc(path);
if (!options.DateLastModified.HasValue)
{
options.DateLastModified = _fileSystem.GetLastWriteTimeUtc(path);
}
var cacheKey = path + options.DateLastModified.Value.Ticks;
options.CacheKey = cacheKey.GetMD5();