diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-07-17 13:11:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-17 13:11:39 -0400 |
| commit | dc264a2cf1568f1e439115b4426c1eefb5c46442 (patch) | |
| tree | 2c3bff38ee0e9ffcbfe598c9d3652f1b6f87373d /MediaBrowser.Server.Implementations/HttpServer | |
| parent | f29191a0a16763eab1e74eac4d41777ad3738a47 (diff) | |
| parent | 794b13b8167530f4a0b083fba414a332b723e594 (diff) | |
Merge pull request #1949 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs index c520e43b8..c0a2a5eb3 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs @@ -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(); |
