avoid duplicate requests to the cache proxy. 

fix #125
``ksort`` modifies the array by reference, it does not return a sorted array.

And you should probably move the generation of the signature to a private method, or use a different variable for the sorted array. We should try to keep the submitted headers in the provided order if possible