diff --git a/web/xmds.php b/web/xmds.php index bbafaa0c24..608b67b9fa 100755 --- a/web/xmds.php +++ b/web/xmds.php @@ -196,7 +196,7 @@ if ($file->type === 'L') { // Layouts are always XML header('Content-Type: text/xml'); - } else if ($file->fileType === 'bundle') { + } else if ($file->fileType === 'bundle' || \Illuminate\Support\Str::endsWith($file->path, '.js')) { header('Content-Type: application/javascript'); } else if ($file->fileType === 'fontCss' || \Illuminate\Support\Str::endsWith($file->path, '.css')) { $isCss = true;