Przeglądaj źródła

fixed missing compression for dashboard js/css

Luke Pulverenti 12 lat temu
rodzic
commit
969bc00098

+ 8 - 0
MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs

@@ -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;
             }
 

+ 1 - 1
MediaBrowser.WebDashboard/Api/DashboardService.cs

@@ -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
                             };