Add optional headers to purge call

Fix #117.

I think this makes sense, but @dbu, please validate whether this answers to a proper use case (#117).
@dbu it is a ref to the line 182 in this file.