/src/main/java/org/htmlunit/Cache.java
freshnessLifetime = ( long) ( ( createdAt != lastModified.getTime( ) ) }
freshnessLifetime = ( long ) ( ( createdAt - lastModified.getTime ( ) ) }
return expires.getTime() - now > DELAY; } } else if (response.getResponseHeaderValue(HttpHeader.LAST_MODIFIED) != null) { final Date lastModified = parseDateHeader(response, HttpHeader.LAST_MODIFIED); if (lastModified != null) { <extra_id_0> } 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) { if (isCacheable(request, response)) { final URL url = request.getUrl();