Yii 1 got [a nice method](https://github.com/yiisoft/yii/blob/master/framework/web/CHttpRequest.php#L841) in 1.1.14 to parse mime types. You could just compare the sub type and ignore type (the first part).