Fwd: Varnish Cache

Paul A. Procacci pprocacci at datapipe.com
Thu Jun 9 19:24:26 CEST 2016


>    Hi Team
>    I'm a newbie to Varnish Cache. I have a very basic question around the
>    same.
> 
>    - I'm making a search query for example
>    like [1]http://test.com?query=apple,orange&store=1234 and the same is
>    fetched and cached in Varnish
>    - Now again Im making the same request it gets served from Cache with
>    out a backend fetch
>    - Now if I just pass [2]http://test.com?query=orange,apple&store=1234 ,
>    here i just swapped the search keywords. So I'm doubtful, if this query
>    url is unique with previous one or it will be a new backend fetch. Or
>    is there a way we can manipulate the request to match the cached value.
>    Any help will be great...
>    Best Regards
>    Sujith P V

Further to my previous email, boltsort wouldn't change the behavior of:
"query=orange,apple" vs "query=apple,orange".  For this you can either
write embedded C or find a vmod that splits the values based on ',' and
sorts those values alphebetically.

~Paul



More information about the varnish-misc mailing list