<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Georgia">I did a little poking around with WACounter (early
      seaside version 3) and..<br>
      <br>
      When hitting the back button(Chrome), the screen updates
      correctly, but does not re-render, suggesting caching. So I
      requested no-caching:<br>
      <br>
      renderContentOn: html<br>
      <br>
      &nbsp;&nbsp;&nbsp; <b>self requestContext response doNotCache.</b><b><br>
      </b><b>&nbsp;&nbsp;&nbsp; html heading: Time now asString.</b><br>
      &nbsp;&nbsp;&nbsp; html heading: count.<br>
      &nbsp;&nbsp;&nbsp; html anchor<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback: [ self increase ];<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: '++'.<br>
      &nbsp;&nbsp;&nbsp; html space.<br>
      &nbsp;&nbsp;&nbsp; html anchor<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback: [ self decrease ];<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: '--'.<br>
      &nbsp;&nbsp;&nbsp; <br>
      And still no re-render. Google found this:<br>
      <br>
<a class="moz-txt-link-freetext" href="http://blog.55minutes.com/2011/10/how-to-defeat-the-browser-back-button-cache/">http://blog.55minutes.com/2011/10/how-to-defeat-the-browser-back-button-cache/</a><br>
      <br>
      Changing:<br>
      <br>
      WAResponse&gt;&gt;doNotCache<br>
      &nbsp;&nbsp;&nbsp; "Configure the receiver to not be cached at all."<br>
      &nbsp;&nbsp;&nbsp; <br>
      &nbsp;&nbsp;&nbsp; self headerAt: 'Pragma' put: 'no-cache'. "Proxies"<br>
      &nbsp;&nbsp;&nbsp; self headerAt: 'Expires' putDate: self doNotCacheExpiryDate.
      "HTTP 1.0"<br>
      &nbsp;&nbsp;&nbsp; self headerAt: <b>'Cache-Control' put: 'no-cache, max-age=0,
        must-revalidate, no-store'</b>. "HTTP 1.1"<br>
      <br>
      and now it re-renders on a back button. HTH<br>
      <br>
      Cheers,<br>
      Bob<br>
      <br>
    </font>
    <div class="moz-cite-prefix">On 12/1/13 10:34 AM, Lorenz K&ouml;hl wrote:<br>
    </div>
    <blockquote cite="mid:08CD58C4-7A01-4DA4-9EA5-AA3C6970E8C4@quub.de"
      type="cite">
      <pre wrap="">I'm developing a shopping cart and wondering if there's any way to show its size consistently even after pressing the back button.

I think I would need to force a re-render, but since I'm not sure what the browsers actually request on back button presses I'm at a loss how to configure this, if possible.

When I open the developer tools network tab in chrome and press the back button, the behaviour is different than normally, ie. after I added an item and it shows '1 article' and I press back, then the component is properly re-rendered and still shows '1 article' even on the previous page. So chrome requests are probably
different..

Is it possible to force this behaviour in the normal browser state?

greetings,
        Lo_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>

</pre>
    </blockquote>
    <br>
  </body>
</html>