/src/main/java/org/htmlunit/Cache.java
if ( lastModified != null) { final Date lastModified = parseDateHeader( response, HttpHeader.LAST_MODIFIED) ;
final Date lastModified = parseDateHeader ( response, HttpHeader.LAST_MODIFIED ) ; if ( lastModified != null ) {
final Date expires = parseDateHeader(response, HttpHeader.EXPIRES); if (expires != null) { return expires.getTime() - now > DELAY; } } else if (response.getResponseHeaderValue(HttpHeader.LAST_MODIFIED) != null) { <extra_id_0> freshnessLifetime = (long) ((createdAt - lastModified.getTime()) } } return now - createdAt < freshnessLifetime * org.apache.commons.lang3.time.DateUtils.MILLIS_PER_SECOND; } public boolean cacheIfPossible(final WebRequest request, final WebResponse response, final Object toCache) {