improved mimetype detection and disabled gzip compression for media
files