Fix rest router when cache is empty