Use the :query request matcher to match requests on the query string portion of the request URI.
You can use this (alone, or in combination with others) as an alternative to :uri so that non-deterministic portions of the URI are not considered as part of the request matching.
Background ()
Given a previously recorded cassette file "cassettes/example.yml" with: