Clear cache: "Custom Purge" Query strings?

Hi all,

Custom Purge is causing me some problems - I have a file that is included on different pages on my site:

Different pages include this file - but with different query strings - I have 1000s of page, so it could be like this: – has include.js?v=123 – has include.js?v=qwerty

Basically random query strings.

Using Custom Purge - only clears the version with “no query strings” - so all the versions with query strings - still have the old version.

How do I clear the cache of this file - including all query string versions (without knowing them)???

Many thanks


If the include.js file has the same content regardless of query string, you could set up page rule for it with the appropriate cache level:

This topic was automatically closed after 30 days. New replies are no longer allowed.