added mime type to response
added redis support.