/src/main/java/org/htmlunit/Cache.java
if ( isCacheable( response) ) {
if ( isCacheable ( request, response ) ) {
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) { <extra_id_0> final URL url = request.getUrl(); if (url == null) { return false; } final Entry entry = new Entry(UrlUtils.normalize(url), response, toCache); entries_.put(entry.key_, entry);