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:

example.com/include.js

Different pages include this file - but with different query strings - I have 1000s of page, so it could be like this:

example.com/index.php – has include.js?v=123
example.com/sub/index.php – 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

Hi,

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.