Merge pull request #3052 from vlakoff/mime

Fix caching of MIME config