fix bug for not save empty response to cache