Cache: split permission cache scanning and cache scanning
Cache: normalize mimetypes