public static function sendContentTypeBySubFix($subFix = 'html')
{
$mines = ['html' => 'text/html', 'htm' => 'text/html', 'shtml' => 'text/html', 'css' => 'text/css', 'xml' => 'text/xml', 'gif' => 'image/gif', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'js' => 'application/x-javascript', 'atom' => 'application/atom+xml', 'rss' => 'application/rss+xml', 'mml' => 'text/mathml', 'txt' => 'text/plain', 'wml' => 'text/vnd.wap.wml', 'jad' => 'text/vnd.sun.j2me.app-descriptor', 'htc' => 'text/x-component', 'png' => 'image/png', 'tiff' => 'image/tiff', 'tif' => 'image/tiff', 'wbmp' => 'image/vnd.wap.wbmp', 'ico' => 'image/x-icon', 'jng' => 'image/x-jng', 'bmp' => 'image/x-ms-bmp', 'svg' => 'image/svg+xml', 'svgz' => 'image/svg+xml', 'webp' => 'image/webp', 'doc' => 'application/msword', 'pdf' => 'application/pdf', 'xls' => 'application/vnd.ms-excel', 'ppt' => 'application/vnd.ms-powerpoint', 'rar' => 'application/x-rar-compressed', 'swf' => 'application/x-shockwave-flash', 'zip' => 'application/xhtml+xml', 'xhtml' => 'application/xhtml+xml', 'mp3' => 'audio/mpeg', 'ogg' => 'audio/ogg', 'm4a' => 'audio/ogg', 'mp4' => 'video/mp4 ', 'wmv' => 'video/x-ms-wmv', 'avi' => 'video/x-msvideo'];
$mine = isset($mines[$subFix]) ? $mines[$subFix] : 'text/html';
header("Content-Type:{$mine};charset=utf-8");
}