Skip to content

Function argument for setMatchlist? #6

@lukehorvat

Description

@lukehorvat

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions