Reordering query parameters

AD straightflush at gmail.com
Thu Jan 5 16:48:49 CET 2012


i will create branch of your github repo and stick it in a "vmod" subdir if
thats OK ?

On Thu, Jan 5, 2012 at 10:36 AM, Olivier Van Acker <cyberroadie at gmail.com>wrote:

>
>
> very cool, want some help turning this into a vmod?  inline C is sooo 2.0
>> :-)
>>
>>
> Haha, I feel like an old fart now ;-)
> Yes I could use some help turning this in a vmod, reading the doc now but
> it's kinda limited
>
> Olivier
>
>
>
>> This is actually very helpful to have a consistent cache key when you get
>> the same URL but different order of query params.
>>
>> Cheers,
>> AD
>>
>> On Thu, Jan 5, 2012 at 8:50 AM, Olivier Van Acker <cyberroadie at gmail.com>wrote:
>>
>>> I've written a small piece of C code which can be embedded in the
>>> varnish configuration. It puts the query parameters of an URL in order, so
>>> equal URLs with their parameters in different order become the same
>>> blog post explaining it:
>>>
>>> http://cyberroadie.wordpress.com/2012/01/05/varnish-reordering-query-string/
>>>
>>> source code:
>>>  https://github.com/cyberroadie/varnish-urlsort
>>>
>>> I haven't used this in a large scale live environment (yet), so please
>>> be careful and test first!
>>>
>>> Hope its useful,
>>>
>>> Olivier
>>>
>>> _______________________________________________
>>> varnish-misc mailing list
>>> varnish-misc at varnish-cache.org
>>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>>
>>
>>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120105/07be4951/attachment-0001.html>


More information about the varnish-misc mailing list