mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix lastmodified header
This commit is contained in:
parent
6e9828ddad
commit
7dbeeadea6
@ -534,7 +534,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||||||
if (lastDateModified.HasValue && (string.IsNullOrEmpty(cacheKey) || cacheDuration.HasValue))
|
if (lastDateModified.HasValue && (string.IsNullOrEmpty(cacheKey) || cacheDuration.HasValue))
|
||||||
{
|
{
|
||||||
AddAgeHeader(responseHeaders, lastDateModified);
|
AddAgeHeader(responseHeaders, lastDateModified);
|
||||||
responseHeaders["LastModified"] = lastDateModified.Value.ToString("r");
|
responseHeaders["Last-Modified"] = lastDateModified.Value.ToString("r");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cacheDuration.HasValue)
|
if (cacheDuration.HasValue)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user