Ticket #29: i29.diff

File i29.diff, 1.6 KB (added by julian.reschke@…, 9 years ago)

Proposed patch for part 6.

  • p6-cache.xml

     
    686686  <list style="numbers">
    687687    <t>the "apparent_age": response_time minus date_value, if the local clock is reasonably well synchronized to the
    688688      origin server's clock. If the result is negative, the result is replaced by zero.</t>
    689     <t>age_value, if all of the caches along the response path implement HTTP/1.1.</t>
     689    <t>the "corrected_age_value", if all of the caches along the response path implement HTTP/1.1;
     690      note this value &MUST; be interpreted relative to the time the
     691      request was initiated, not the time that the response was received.</t>
    690692  </list>
    691693</t>
    692694<figure>
    693 <preamble>These are combined as</preamble>
    694695<artwork type="code">
    695696  apparent_age = max(0, response_time - date_value);
    696   corrected_received_age = max(apparent_age, age_value);
    697 </artwork></figure>
    698 <t>
    699   When an Age value is received, it &MUST; be interpreted relative to the time the
    700   request was initiated, not the time that the response was received.
    701 </t>
    702 <figure><artwork type="code">
     697
    703698  response_delay = response_time - request_time;
    704   corrected_initial_age = corrected_received_age + response_delay;
     699  corrected_age_value = age_value + response_delay; 
     700</artwork>
     701</figure>
     702<figure>
     703<preamble>These are combined as</preamble>
     704<artwork type="code">
     705  corrected_initial_age = max(apparent_age, corrected_age_value);
    705706</artwork></figure>
    706707<t>
    707708  The current_age of a stored response can then be calculated by adding the amount of