mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-06 11:45:24 +01:00
add expires response header
This commit is contained in:
parent
460e3635fd
commit
55a53cfab7
1 changed files with 5 additions and 3 deletions
|
|
@ -93,12 +93,14 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (responseHeaders != null)
|
||||
if (responseHeaders == null)
|
||||
{
|
||||
AddResponseHeaders(result, responseHeaders);
|
||||
responseHeaders = new Dictionary<string, string>();
|
||||
}
|
||||
|
||||
responseHeaders["Expires"] = "-1";
|
||||
AddResponseHeaders(result, responseHeaders);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue