It would be nice if one could specify a blacklist/whitelist function as the first argument to setMatchlist, instead of (or in addition to) an array of regular expressions. For a project I'm currently working on, I need to do a few things programmatically to determine whether a URL should be cache-busted; it's not quite as simple as checking whether it matches a regular expression.
The function would take config.url as an argument and return a boolean indicating whether it is a "match" or not.
What do you think?
It would be nice if one could specify a blacklist/whitelist function as the first argument to
setMatchlist, instead of (or in addition to) an array of regular expressions. For a project I'm currently working on, I need to do a few things programmatically to determine whether a URL should be cache-busted; it's not quite as simple as checking whether it matches a regular expression.The function would take
config.urlas an argument and return a boolean indicating whether it is a "match" or not.What do you think?