saintmac/angular-cache-buster — pull request #2 by alfred-bratterud (2014-05-06 19:59:56+00:00)
Title: Added regex matching, and blacklist/whitelist

Attaching '?cacheBuster' to any url will break the last item in the query list if there is one allready, so changed that. Also, some apps might want as much caching as possible for a lot of url's, even in the api's (i.e items that change very rarely, but are still in DB). So, I added an array of regexes to match against instead of a single word.

If performance is an issue, one can always just keep the regex array to one element, and keep it short. For this purpose I also added a choice between to busting all except the ones on the list, or the opposite (blacklist / whitelist). It works well on our site, but more thorough testing is probably advised.