<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Network cache: old pages returned by disk cache on history navigation after session is restored"
   href="https://bugs.webkit.org/show_bug.cgi?id=153230#c44">Comment # 44</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Network cache: old pages returned by disk cache on history navigation after session is restored"
   href="https://bugs.webkit.org/show_bug.cgi?id=153230">bug 153230</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=153230#c43">comment #43</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=271879&amp;action=diff" name="attach_271879" title="Updated patch">attachment 271879</a> <a href="attachment.cgi?id=271879&amp;action=edit" title="Updated patch">[details]</a></span>
&gt; Updated patch
&gt; 
&gt; Sorry, still not a huge fan of the complexity this adds. This seems
&gt; intrusive and a bit complicated for what it does.
&gt; 
&gt; Would the following work?
&gt; 1. We don't add a new load type (we already have too many)
&gt; 2. We had a boolean flag to WebCore::HistoryItem to distinguish that the
&gt; HistoryItem was restored from a previous session
&gt; 3. We check this new WebCore::HistoryItem flag in
&gt; FrameLoader::loadDifferentDocumentItem() to choose the right cache policy
&gt; without requiring a new load type
&gt; 4. We reset this flag right after it is read in
&gt; FrameLoader::loadDifferentDocumentItem().
&gt; 
&gt; Let me know what you think.</span >

This is pretty much what my first patch did :-) 

<a href="https://bug-153230-attachments.webkit.org/attachment.cgi?id=270655">https://bug-153230-attachments.webkit.org/attachment.cgi?id=270655</a>

I changed the approach because you were not sure about the need to add a member to HistoryItem, and I didn't like it either. See <a href="show_bug.cgi?id=153230#c12">comment #12</a> :-)

But yes, I can go back to the initial approach, just with better names, with special case for iOS and resetting the flag. The patch was indeed a lot simpler.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>