<?xml version="1.0" encoding="UTF-8"?>
<test id="cache/wcm/history/1" class="A" scope="cache" testtype="application" type="manual" source="wcm11#5.5.1" device="both">
  <assertion>When a cached resource has the must-revalidate control attribute set, and the cached resource is stale, then the user agent revalidates the resource when going "back" in the history.
</assertion>
  <specnote>First link fetches dynamically generated doc. This doc. (Page A)
 is stale. User follows link to Page B then back via history to Page A, which should be
 revalidated and present new content (a new time). So TIME_1 and TIME_2 should be 
different.</specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<p>
 wcm/history/1 <br/>

  Follow this&nbsp;<a href="<cachemethod1>">link</a>&nbsp;<br/>
 
</p>
<p mode="wrap">Were the two times DIFFERENT?
<br />
<yesno>
</p>
</card>]]>
  </method>
  <cachemethods>
    <cachemethod id="1">
      <method>
        <![CDATA[<card id="card1">
<p>
  wcm/history/1 <br/>
  Page A.  <br/>
  Note the time , <br/>
  <currenttime> <br/>
  then follow this&nbsp;<a href="<cachemethod2>">link</a>&nbsp;<br/>

 <do type="prev" label="BACK" >
   <prev/>
 </do>
</p>
</card>
]]>
      </method>
      <header>
        <name>StatusCode</name>
        <value>200</value>
      </header>
      <header>
        <name>Cache-Control</name>
        <value>must-revalidate</value>
      </header>
      <header>
        <name>Expires</name>
        <value>&lt;olddate&gt;</value>
      </header>
    </cachemethod>
    <cachemethod id="2">
      <method>
        <![CDATA[<card id="card2">
<p>
  Page B. <br/>
  1. Go BACK to page A <br/>
  2. Note the time and then <br/>
  3. (from Page A) go BACK to start page. <br/>

 <do type="prev" label="BACK" >
   <prev/>
 </do>
</p>
</card>
]]>
      </method>
      <header>
        <name>StatusCode</name>
        <value>200</value>
      </header>
    </cachemethod>
  </cachemethods>
</test>

