cache content_type, fixes #1462