A proc for ignoring parts of query strings when generating a key. This is useful when you have parameters like utm or trk that don't affect the content on the page and are unique per-visitor or campaign. Parameters like these will be part of the key and cause a lot of churn.
Thought I'd open this as a PR to see if the maintainers were interested. Lemme know if otherwise, and I'll just monkey patch in my project!
I could add regex. I was thinking the Proc is nice because it would allow a class that responds to call if you like, for more complex possibilities. Open to maintainer preferences though.
I have a unit test in there, is there specific additional testing you'd like to see?
I added docs to both the configuration documentation and README.
A proc for ignoring parts of query strings when generating a key. This is useful when you have parameters like
utm
ortrk
that don't affect the content on the page and are unique per-visitor or campaign. Parameters like these will be part of the key and cause a lot of churn.Thought I'd open this as a PR to see if the maintainers were interested. Lemme know if otherwise, and I'll just monkey patch in my project!