|
|
@ -61,7 +61,7 @@ namespace MediaBrowser.WebDashboard.Api
|
|
|
|
// jQuery ajax doesn't seem to handle if-modified-since correctly
|
|
|
|
// jQuery ajax doesn't seem to handle if-modified-since correctly
|
|
|
|
if (IsFormat(path, "html"))
|
|
|
|
if (IsFormat(path, "html"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (IsCoreHtml(path) && path.IndexOf(".template.html", StringComparison.OrdinalIgnoreCase) == -1)
|
|
|
|
if (IsCoreHtml(path))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
resourceStream = await ModifyHtml(resourceStream, mode, appVersion, localizationCulture, enableMinification).ConfigureAwait(false);
|
|
|
|
resourceStream = await ModifyHtml(resourceStream, mode, appVersion, localizationCulture, enableMinification).ConfigureAwait(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -222,13 +222,18 @@ namespace MediaBrowser.WebDashboard.Api
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private bool IsCoreHtml(string path)
|
|
|
|
public bool IsCoreHtml(string path)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (path.IndexOf("vulcanize", StringComparison.OrdinalIgnoreCase) != -1)
|
|
|
|
if (path.IndexOf("vulcanize", StringComparison.OrdinalIgnoreCase) != -1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (path.IndexOf(".template.html", StringComparison.OrdinalIgnoreCase) != -1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
path = GetDashboardResourcePath(path);
|
|
|
|
path = GetDashboardResourcePath(path);
|
|
|
|
var parent = Path.GetDirectoryName(path);
|
|
|
|
var parent = Path.GetDirectoryName(path);
|
|
|
|
|
|
|
|
|
|
|
|