mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 00:35:26 +03:00
add expires response header
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user