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