> I wouldn’t worry about caching those query string variable’s anyways.
@destac strictly speaking it depends on the site and the percentage of page impressions containing a query string. If 90% of your traffic contains query strings then it is likely important to cache that content, especially if that traffic happens to be your high value/paid for traffic.
Even if your permalink structure does not contain query strings, people/systems often use query strings for campaign tracking adding things like “?utm_source=twitter&utm_medium=social&utm_campaign=test-campaign” to shared URLs. WordPress will ignore these but they will be read by Google Analytics or other products. I do that when sharing things on social media so I can use Google Analytics to see what visitors from Twitter did. If I’m not caching URLs with query strings then I’m ensuring visitors clicking on a link in Twitter get a slower experience and use more server resources than visitors clicking the link elsewhere without a query string. If something happens to do well (“go viral”) then that could be the majority of traffic for a day not being cached.
Similarly Google Adwords adds query strings for tracking so if you are not caching these then you will be giving a slower experience to the people you’ve actually paid money to get to your site. One site I look after gets 80% of its traffic from Adwords (URLS with a query string). It does not make sense to serve content more slowly to the people they paid to acquire.
So yes, sometimes caching content with query strings does matter and sometimes it matters a lot.