That's a clever idea, but how do you change req.request in VCL?  I have tried doing set req.request = 'HEAD' but I receive the following error:<br>-------------------------<br>In VCL code Line 7 Pos 17<br> set 
req.request = "HEAD";<br>-----------------#--------<br><br>Also, I don't believe it's possible to process a web servers return codes (200 or 403) in VCL.  <br><br><br><div><span class="gmail_quote">On 2/14/07, 
<b class="gmail_sendername">Damien Wetzel</b> <<a href="mailto:dwetzel@nerim.net">dwetzel@nerim.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For Authorisations, why don't pass the requests to the backend<br>for the matching URLs as HEAD requests with Cookie: or Authorisation:<br>headers in it then if the backend sends 200, Varnish send back the cached<br>URL, if backend sends 403, the response is forwarded back to the enduser ?
<br><br>Ask Bjørn Hansen writes:<br> ><br> > On Feb 13, 2007, at 9:24, cripy wrote:<br> ><br> > > Hello, I am curious to know whether anybody has had any success<br> > > with caching files with HTTP authorization and still authorizing
<br> > > correctly.  I have tried to implement the following VLC:<br> ><br> > I don't know if it can be done with VLC, but I'd like to point to the<br> > perlbal "re-proxy" feature (for potential inspiration to varnish).
<br> ><br> > The idea is that the proxy sends the request to the backend server,<br> > the backend server (typically a "smart" server with DB access and<br> > heavy memory footprint) authorizes the request and gives the proxy
<br> > another URL.  The proxy then fetches the file from that URL<br> > (typically on a "dumb" server) and sends it to the client.<br> ><br> ><br> >   - ask<br> ><br> > --<br> > <a href="http://develooper.com/">
http://develooper.com/</a> - <a href="http://askask.com/">http://askask.com/</a><br> ><br> ><br> > _______________________________________________<br> > varnish-misc mailing list<br> > <a href="mailto:varnish-misc@projects.linpro.no">
varnish-misc@projects.linpro.no</a><br> > <a href="http://projects.linpro.no/mailman/listinfo/varnish-misc">http://projects.linpro.no/mailman/listinfo/varnish-misc</a><br><br></blockquote></div><br>