public static void setExpiresHours(@NotNull HttpServletResponse response, int hours) {
    Date expiresDate = DateUtils.addHours(new Date(), hours);
    setExpires(response, expiresDate);
  }
public static void setExpiresHours ( @ NotNull HttpServletResponse response , int hours ) { Date expiresDate = DateUtils . addHours ( new Date ( ) , hours ) ; setExpires ( response , expiresDate ) ; }
Set expires header to given amount of hours in the future.
@param response Response
@param hours Hours to expire