[doc] Adding documenting the  cache method and middlewares