Cache header

Is it safe or good idea to use both Pragma and Cache-Control on RESTApi response server?
or how is best recommended for such purpose?