W3 total Cache – Site with query strings

I have a blog were most of the traffic comes with query strings for tracking purposes, which means that query strings doesn’t change the content of the site.

As I recently learned – W3 Total Cache & WP Fastest Cache, both don’t cache pages with query strings.

The question is – how to make it W3 cache or WP cache cache pages with query string & most importantly make the query strings “ignorable”, which means for example:
if we have two hits:
www.example.com/?t=123
www.example.com/?t=333

both are served as one page from the same cache.

I know that I can add “accepted query strings“, but I don’t know if it just allows to cache pages with query strings, or it also makes query string ignorable?
Also – I think this feature forces pages with query strings to work with disk cache instead of disk: enhanced, which I’d like not to do.
So – is there is a solution (it can be with W3 total or WP fastest) that ignores query strings and allow pages with them to get cached – without giving up disk:enhanced?

1 Answer
1

W3TC “Accepted query strings:” makes listed query strings ignorable:
https://github.com/szepeviktor/w3-total-cache-fixed/pull/380

My current list is:

utm_source
utm_medium
gclid

This way these pages:

/page
/page?utm_source=blabla&utm_medium=email
/page?glcid=y349untg93h45t

are served from page enhanced cache as for /page

Leave a Comment