mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 08:45:23 +03:00
copy dashboard to the output folder and load from the file system, instead of using embedded resources
This commit is contained in:
@@ -162,9 +162,18 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
|
||||
if (!string.IsNullOrEmpty(exception.Message))
|
||||
{
|
||||
res.AddHeader("X-Application-Error-Code", exception.Message);
|
||||
res.AddHeader("X-Application-Error-Code", exception.Message.Replace(Environment.NewLine, " "));
|
||||
}
|
||||
}
|
||||
|
||||
if (dto is CompressedResult)
|
||||
{
|
||||
// Per Google PageSpeed
|
||||
// This instructs the proxies to cache two versions of the resource: one compressed, and one uncompressed.
|
||||
// The correct version of the resource is delivered based on the client request header.
|
||||
// This is a good choice for applications that are singly homed and depend on public proxies for user locality.
|
||||
res.AddHeader("Vary", "Accept-Encoding");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user