Sitelet https://github.com/saintmac/angular-cache-buster/issues/6
Skip to content

Function argument for setMatchlist? #6

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?

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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