caching pipelines based on query string