Make sure the correct mimetype is used (thanks @crccheck)