Simpler caching, was not returning mimetype.