fixed missing compression for dashboard js/css

This commit is contained in:
Luke Pulverenti 2013-05-28 13:32:40 -04:00
parent 405e38280b
commit 969bc00098
2 changed files with 9 additions and 1 deletions

View File

@ -381,6 +381,14 @@ namespace MediaBrowser.Server.Implementations.HttpServer
}
if (contentType.StartsWith("application/", StringComparison.OrdinalIgnoreCase))
{
if (string.Equals(contentType, "application/x-javascript", StringComparison.OrdinalIgnoreCase))
{
return true;
}
if (string.Equals(contentType, "application/xml", StringComparison.OrdinalIgnoreCase))
{
return true;
}
return false;
}

View File

@ -409,7 +409,7 @@ namespace MediaBrowser.WebDashboard.Api
var files = new[]
{
"http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css",
"thirdparty/jqm-icon-pack-3.0/font-awesome/jqm-icon-pack-3.0.0-fa.css",
"thirdparty/jqm-icon-pack-3.0/font-awesome/jqm-icon-pack-3.0.0-fa.css" + versionString,
"css/all.css" + versionString
};