<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 07/09/2011 20:41, Stroomer, Jeff wrote:
    <blockquote
cite="mid:4F86EEFDF44D2D41951D491B61B7D4332486B9C732@SM-CALA-VXMB06B.swna.wdpr.disney.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Varnish folks,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I’m trying to combine Varnish with a
          Tomcat  servlet  to make a fancy reverse proxy.  The idea is
          that Varnish forwards a URL to the servlet, which uses a 302
          redirect to tell Varnish what the “real” URL should be.  For
          this to work well I need Varnish to do two things: 1) cache
          the 302 redirects from the servlet, and also 2) hide the
          redirect from the client.  It seems like I can get  Varnish to
          do one or the other, but not both simultaneously.<o:p></o:p></p>
      </div>
    </blockquote>
    ...<br>
    <blockquote
cite="mid:4F86EEFDF44D2D41951D491B61B7D4332486B9C732@SM-CALA-VXMB06B.swna.wdpr.disney.com"
      type="cite">
      <div class="WordSection1">  Any suggestions as to how I can cache
        the 302 response and also hide the redirect from the client?<o:p></o:p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Jeff<br>
        </p>
      </div>
    </blockquote>
    <br>
    Jeff,<br>
    <br>
    Take a look at <a
      href="https://www.varnish-cache.org/trac/ticket/411">https://www.varnish-cache.org/trac/ticket/411</a>
    - this suggests putting a restart in vcl_deliver.<br>
    <br>
    <br>
    <br>
    Rob<br>
    <br>
  </body>
</html>