Title: Automatically ignore certain query string parameters
Last modified: May 13, 2020

---

# Automatically ignore certain query string parameters

 *  Resolved [bd2gtfh](https://wordpress.org/support/users/bd2gtfh/)
 * (@bd2gtfh)
 * [6 years ago](https://wordpress.org/support/topic/automatically-ignore-certain-query-string-parameters/)
 * I do not want to enable query string caching for all query strings, but only 
   a select few like:
 * utm_source
    utm_campaign utm_medium
 * I like how wp-rocket implements it here for instance:
    [https://docs.wp-rocket.me/article/971-caching-query-strings](https://docs.wp-rocket.me/article/971-caching-query-strings)
 * Is that possible with Hummingbird?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [6 years ago](https://wordpress.org/support/topic/automatically-ignore-certain-query-string-parameters/#post-12836524)
 * Hello [@bd2gtfh](https://wordpress.org/support/users/bd2gtfh/)
 * I hope you’re doing well!
 * You can exclude URLs and URLs’ string from Hummingbird > Caching > Page Cacing.
   Scroll to the Exclusions field and add the URLs strings in there.
 * Please see this screenshot:
    [https://monosnap.com/file/CE3tl5Au0ks2Oj7vwHArFzAypaJZKH](https://monosnap.com/file/CE3tl5Au0ks2Oj7vwHArFzAypaJZKH)
 * Hope this helps!
 * Kind regards,
    Nastia
 *  Thread Starter [bd2gtfh](https://wordpress.org/support/users/bd2gtfh/)
 * (@bd2gtfh)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/automatically-ignore-certain-query-string-parameters/#post-13049386)
 * Hi, thank you for your response, but this isn’t quite the same as what I am asking.
   Lets say a URL has 5 GET parameters on it such as:
 * utm_source=84305&utm_campaign=8492&utm_medium=341&my_param1=xyz&my_param2=abc
 * and I want the cache to ignore the utm_* parameters, but consider the my_* parameters
   such as if the above request was made the following would be Cache Hits:
    utm_source
   =742984&utm_campaign=8492&utm_medium=341&my_param1=xyz&my_param2=abc utm_source
   =55454&utm_campaign=8492&utm_medium=341&my_param1=xyz&my_param2=abc utm_source
   =545432&utm_campaign=8492&utm_medium=341&my_param1=xyz&my_param2=abc
 * And the following would be Cache Misses:
    utm_source=84305&utm_campaign=8492&
   utm_medium=341&my_param1=3525&my_param2=3234 utm_source=84305&utm_campaign=8492&
   utm_medium=341&my_param1=3525yz&my_param2=2535
 * See what I am asking? It is exactly what is supported by [https://docs.wp-rocket.me/article/971-caching-query-strings](https://docs.wp-rocket.me/article/971-caching-query-strings).
 * How would I configure that using the method you provided? Do I need to handle
   the different order in which the parameters can be passed?
 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/automatically-ignore-certain-query-string-parameters/#post-13065289)
 * Hello [@bd2gtfh](https://wordpress.org/support/users/bd2gtfh/)
 * I trust you’re doing well!
 * Hummingbird allows excluding query strings. Please go to the Hummingbird > Caching
   > Page Caching, and under the Exclusion list, you may add `utm_source`, `utm_campaign`
   inside. please see this screenshot:
    [https://take.ms/LDROx](https://take.ms/LDROx)
 * Let us know if you have any further questions!
 * Kind regards,
    Nasti

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Automatically ignore certain query string parameters’ is closed to new
replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/automatically-ignore-certain-query-string-parameters/#post-13065289)
 * Status: resolved