Mimetypes in filenames with several dots

I need to treat some dns files with .zone extension as text files and display them in browser.
I added
“zone”: [“text/plain”] in config/mimetypemappings.json and it works only if the filename has only one dot.
For example, mydomain.zone works, but internal.mydomain.zone does not work and it’s downloaded instead of being displayed.
Thank you for any help!

EDIT: now it works. It needed to restart thee server because the commands
occ maintenance:mimetype:update-js
occ maintenance:mimetype:update-db
did not change the cached filetype of files

1 Like