Enhanced cli detection function
Added xml and txt text/plain content-type from cache