<div dir="ltr">Hi,<div><br></div><div>Since that blog post was written we've managed to convince PHK to accept query string sorting into the std vmod - which is bundled with Varnish itself.<div>Now you just do "import std;" and then you can call std.querysort(req.url) to sort the querystring.</div><div><br></div><div>Per.<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 9, 2016 at 7:20 PM, Paul A. Procacci <span dir="ltr"><<a href="mailto:pprocacci@datapipe.com" target="_blank">pprocacci@datapipe.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">It'll fetch from the backend again, by-passing the cache.<br>
<br>
You can fetch the same contents from ram again by normalizing the<br>
parameters to the query.<br>
<br>
<a href="https://info.varnish-software.com/blog/essential-vmods-all-varnish-users-should-know-about" rel="noreferrer" target="_blank">https://info.varnish-software.com/blog/essential-vmods-all-varnish-users-should-know-about</a><br>
<br>
The above url describes "their favorite" as being boltsort, but there there<br>
others if you desire.<br>
<br>
~Paul<br>
<span class=""><br>
On Thu, Jun 09, 2016 at 10:14:15PM +0530, sujith pv wrote:<br>
> Hi Team<br>
> I'm a newbie to Varnish Cache. I have a very basic question around the<br>
> same.<br>
><br>
> - I'm making a search query for example<br>
</span>> like [1]<a href="http://test.com?query=apple,orange&store=1234" rel="noreferrer" target="_blank">http://test.com?query=apple,orange&store=1234</a> and the same is<br>
<span class="">> fetched and cached in Varnish<br>
> - Now again Im making the same request it gets served from Cache with<br>
> out a backend fetch<br>
</span>> - Now if I just pass [2]<a href="http://test.com?query=orange,apple&store=1234" rel="noreferrer" target="_blank">http://test.com?query=orange,apple&store=1234</a> ,<br>
<span class="">> here i just swapped the search keywords. So I'm doubtful, if this query<br>
> url is unique with previous one or it will be a new backend fetch. Or<br>
> is there a way we can manipulate the request to match the cached value.<br>
> Any help will be great...<br>
> Best Regards<br>
> Sujith P V<br>
><br>
</span>> References<br>
><br>
> 1. <a href="http://test.com/?query=apple,orange&store=1234" rel="noreferrer" target="_blank">http://test.com/?query=apple,orange&store=1234</a><br>
> 2. <a href="http://test.com/?query=orange,apple&store=1234" rel="noreferrer" target="_blank">http://test.com/?query=orange,apple&store=1234</a><br>
<br>
> _______________________________________________<br>
> varnish-misc mailing list<br>
> <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
> <a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><table border="0" cellpadding="0" cellspacing="0" style="border-bottom-width:1px;padding-top:5px;border-top-style:solid;width:550px;padding-bottom:5px;border-bottom-color:rgb(238,238,238);border-top-width:1px;border-bottom-style:solid;line-height:1.5em;border-top-color:rgb(238,238,238);color:rgb(102,102,102);font-size:12px;font-family:"Helvetica Neue",Arial,sans-serif;margin-top:20px"><tbody><tr><td width="100"><img src="http://www.varnish-software.com/static/media/logo-email.png"></td><td><font color="#222222"><span style="font-size:14px"><b>Per Buer</b></span></font><br>CTO | Varnish Software AS<br>Cell: <a value="+4790181750" style="color:rgb(17,85,204)">+47 95839117</a><br><span style="font-weight:bold">We Make Websites Fly!<br><a href="https://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank">www.varnish-software.com</a></span></td></tr></tbody></table><br><div style="color:rgb(136,136,136)"><a href="http://info.varnish-software.com/signature" target="_blank"><img src="http://files.varnish-software.com/signature.png"></a><br></div></div></div></div></div>
</div></div></div></div>