Thank you Per!<br><br><div class="gmail_quote">On Mon, Mar 19, 2012 at 11:25 PM, Per Buer <span dir="ltr"><<a href="mailto:perbu@varnish-software.com">perbu@varnish-software.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Mar 16, 2012 at 11:42 PM, Hugues Alary <span dir="ltr"><<a href="mailto:hugues.alary@gmail.com" target="_blank">hugues.alary@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><div>(..) </div><div class="im">
<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><div>Yes. </div><div class="im"><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><div>Negligible. </div><div class="im"><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><div>It's more or less impossible to turn Varnish into an open proxy so I wouldn't worry about that.</div><div class="im"><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><div>No. If it works for you then go for it. </div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div><span class="HOEnZb"><font color="#888888"><div>
<br></div>-- <br><img><div>
Per Buer, CEO<br>Phone: <a href="tel:%2B47%2021%2098%2092%2061" value="+4721989261" target="_blank">+47 21 98 92 61</a> / Mobile: <a href="tel:%2B47%20958%2039%20117" value="+4795839117" target="_blank">+47 958 39 117</a> / 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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Hugues ALARY<br>