private long cacheResponseAge(){
  long apparentReceivedAge=servedDate != null ? Math.max(0,receivedResponseMillis - servedDate.getTime()) : 0;
  long receivedAge=ageSeconds != -1 ? Math.max(apparentReceivedAge,SECONDS.toMillis(ageSeconds)) : apparentReceivedAge;
  long responseDuration=receivedResponseMillis - sentRequestMillis;
  long residentDuration=nowMillis - receivedResponseMillis;
  return receivedAge + responseDuration + residentDuration;
}

private long cacheResponseAge ( ) { long apparentReceivedAge = servedDate != null ? Math . max ( 0 , receivedResponseMillis - servedDate . getTime ( ) ) : 0 ; long receivedAge = ageSeconds != - 1 ? Math . max ( apparentReceivedAge , SECONDS . toMillis ( ageSeconds ) ) : apparentReceivedAge ; long responseDuration = receivedResponseMillis - sentRequestMillis ; long residentDuration = nowMillis - receivedResponseMillis ; return receivedAge + responseDuration + residentDuration ; }
returns the current age of the response , in milliseconds . the calculation is specified by rfc 2616 , 13 . 2 . 3 age calculations .
