mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 23:13:06 +03:00
pass along date modified
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user