<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    What do you mean by "unless you want some very involved set"?<br>
    And sure, Varnish can ban objects when they become invalid, but then
    it still needs to check the origin to see if the object is still
    valid.<br>
    <br>
    Jan Hugo<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 01/23/2017 02:47 PM, Guillaume
      Quintard wrote:<br>
    </div>
    <blockquote
cite="mid:CAJ6ZYQwAt51T1zVXQknej4HsKDzJV1KnCN+vJvRzZnKzwSKNZw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>Short answer is : no, unless you want some very involved
          set.</div>
        <div><br>
        </div>
        <div>BUT, what you can do is: let varnish work its magic, and
          just ban objects based on ETAG when they become invalid.</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>-- <br>
              </div>
              Guillaume Quintard<br>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Mon, Jan 23, 2017 at 1:56 PM, Jan
          Hugo Prins | BetterBe <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:jprins@betterbe.com"
              target="_blank">jprins@betterbe.com</a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hello,<br>
              <br>
              We are currently investigating the use of Varnish for our
              infrastructure. In the software we build, we depend on the
              If-None-Match header and the use of ETAG's.<br>
              The API we have created creates mainly JSON objects, and
              they differ in size from a few hundreds of bytes to
              several megabytes. A lot of these JSON objects are
              perfectly suited for caching, until someone changes a
              parameter and this can happen at any moment. That is also
              why we keep a record of all ETAG's and we invalidate them
              when needed. <br>
              <br>
              What we would like to do is cache created JSON object in
              front of our production environment and when someone
              requests the same calculation that someone else has
              requested before and the ETAG is still valid, send out the
              cached object. But this basicly implies the following
              workflow:<br>
              <br>
              <img src="cid:part2.EE728773.253AF437@betterbe.com" alt=""><br>
              <br>
              Somewhere I found an old Trac Wiki document that describes
              something like this, but I can't figure out if this has
              been implemented or not.<br>
              <a moz-do-not-send="true"
                class="m_-7398062104745155830moz-txt-link-freetext"
href="https://www.varnish-cache.org/trac/wiki/BackendConditionalRequests?version=8"
                target="_blank">https://www.varnish-cache.org/<wbr>trac/wiki/<wbr>BackendConditionalRequests?<wbr>version=8</a><br>
              <br>
              Could someone tell me if the workflow I describe is
              possible? My first tests tell me that in the default setup
              it isn't working like this.<br>
              <br>
              Best regards,<br>
              Jan Hugo Prins<br>
              <br>
              <br>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            varnish-misc mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
            <a moz-do-not-send="true"
              href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc"
              rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <p style="font-family: Arial,Roboto;font-size: 13px;color:
        #000000;line-height:
        20px;margin:0px;margin-top:20px;margin-bottom:50px;"> Met
        vriendelijke groet / Best regards,<br>
        <br>
        Jan Hugo Prins<br>
        <i>Infra and Storage consultant</i>
      </p>
      <table style="min-width:460px;" border="0" cellpadding="0"
        cellspacing="0" width="460">
        <tbody>
          <tr>
            <td colspan="3" style="padding-bottom:40px;"><a
                href="https://www.betterbe.com"><img
                  src="cid:part6.92C1860C.8D2D0CAD@betterbe.com"
                  alt="BetterBe - Transforming automotive leasing
                  worldwide"></a></td>
          </tr>
          <tr>
            <td style="padding-right:40px;font-family:
              Arial,Roboto;font-size: 12px;color:
              #332F60;letter-spacing: 0.1px;line-height:
              1em;padding-bottom:5px;"><nobr>Auke Vleerstraat 140 E</nobr></td>
            <td style="padding-right:40px;font-family:
              Arial,Roboto;font-size: 12px;color:
              #332F60;letter-spacing: 0.1px;line-height:
              1em;padding-bottom:5px;"><nobr><b>T</b> <a
                  href="tel:+31%20%280%29%2053%2048%2000%20694"
                  style="text-decoration:none;color:#332F60;">+31 (0) 53
                  48 00 694</a></nobr></td>
          </tr>
          <tr>
            <td style="padding-right:40px;font-family:
              Arial,Roboto;font-size: 12px;color:
              #332F60;letter-spacing: 0.1px;line-height:
              1em;padding-bottom:5px;"><nobr>7547 AN Enschede</nobr></td>
            <td style="padding-right:40px;font-family:
              Arial,Roboto;font-size: 12px;color:
              #332F60;letter-spacing: 0.1px;line-height:
              1em;padding-bottom:5px;"><nobr><b>E</b> <a
                  href="mailto:jprins@betterbe.com"
                  style="text-decoration:none;color:#332F60;">jprins@betterbe.com</a></nobr></td>
          </tr>
          <tr>
            <td style="padding-right:40px;font-family:
              Arial,Roboto;font-size: 12px;color:
              #332F60;letter-spacing: 0.1px;line-height:
              1em;padding-bottom:5px;"><nobr>CC no. <a
href="https://www.kvk.nl/orderstraat/product-kiezen/?kvknummer=080975270000"
                  style="text-decoration:none;color:#332F60;">08097527</a></nobr></td>
            <td style="padding-right:40px;font-family:
              Arial,Roboto;font-size: 12px;color:
              #332F60;letter-spacing: 0.1px;line-height:
              1em;padding-bottom:5px;"><nobr><b>M</b> <a
                  href="tel:+31%20%280%296%2026%20358%20951"
                  style="text-decoration:none;color:#332F60;">+31 (0)6
                  26 358 951</a></nobr></td>
            <td style="font-family: Arial,Roboto;font-size: 12px;color:
              #332F60;letter-spacing: 0.1px;line-height:
              1em;padding-bottom:5px;"><a
                href="https://www.betterbe.com" style="color:
                #E73C57;font-weight:bold;text-decoration:none;">www.betterbe.com</a></td>
          </tr>
          <tr>
            <td colspan="3" style="font-family: Arial,Roboto;font-size:
              9px;color: #A0A6B2;letter-spacing: 0;line-height:
              1.5em;padding-top:40px;"> BetterBe accepts no liability
              for the content of this email, or for the consequences of
              any actions taken on the basis of the information
              provided, unless that information is subsequently
              confirmed in writing. If you are not the intended
              recipient you are notified that disclosing, copying,
              distributing or taking any action in reliance on the
              contents of this information is strictly prohibited. </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>