I think the best approach would be to remove/replace the cache bust flag before the normalize call, it would make it simpler.

And can use just a simple `name.replace(CACHE_BUST_FLAG, '');` that way if we decide to add more flags in the future it will still work.

I would probably rewrite it as:

```js
//used normalize to avoid caching references to a "cache busted" request
if (name.indexOf(CACHE_BUST_FLAG) !== -1) {
    name = cacheBust(name.replace(CACHE_BUST_FLAG, ''));
}
// resolve any relative paths
return normalize(name);
```

can you refactor it and update the pull request?