/src/main/java/org/htmlunit/util/HeaderUtils.java
final java.util.regex.Matcher matcher = pattern.matcher(value); if(matcher.matches()) {  return java.lang.Long.parseLong(matcher.group(1));};
if ( value != null ) { final Matcher matcher = pattern.matcher ( value ) ; if ( matcher.matches ( ) ) { return Long.parseLong ( matcher.group ( 1 ) ) ; }
return directiveValue(response, MAX_AGE_HEADER_PATTERN); } return 0; } private static long directiveValue(final WebResponse response, final Pattern pattern) { final String value = response.getResponseHeaderValue(HttpHeader.CACHE_CONTROL); <extra_id_0> } return 0; } private static boolean containsCacheControlValue(final WebResponse response, final String value) { final String cacheControl = response.getResponseHeaderValue(HttpHeader.CACHE_CONTROL); return StringUtils.contains(cacheControl, value);