Handle cache api requests