The setExpires method of the Response class establishes the number of minutes until the response becomes invalid.
public void setExpires(int iExpirationMinutes);