On Fri, Mar 16, 2012 at 11:42 PM, Hugues Alary <span dir="ltr"><<a href="mailto:hugues.alary@gmail.com">hugues.alary@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><div>(..) </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><ul><li>I was wondering if communicating with varnish via HTTP header is a good solution? <br></li></ul></div></blockquote><div>Yes. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><ul><li>How bad can it be performance wise? </li></ul></div></blockquote><div>Negligible. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<ul>
<li>Should I be worried about security (interception/modification of the communication between Varnish and the backend), even if no credential will never be sent through HTTP headers? (Also, currently Varnish and the backend are on the same machine, but chances are that they will in the future not live on the same host).</li>

</ul></div></blockquote><div><br></div><div>It's more or less impossible to turn Varnish into an open proxy so I wouldn't worry about that.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><ul>
</ul><div>In the future, I plan on instructing varnish not to cache certain pages containing user defined query strings. I want the user to be able to specify these un-cachable urls query strings directly in the application. The application will then send the un-cachable query strings in a header X-Application-QueryStringNoCache: "querystring1,querystring2,...". </div>


<div><br></div><div>Is that a bad idea?</div></div></blockquote><div><br></div><div>No. If it works for you then go for it. </div><div><br></div></div><div><br></div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>

Per Buer, CEO<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br><i>Varnish makes websites fly!</i><div><a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>

<br></div></div><br>