removeCacheBust function

String removeCacheBust(
  1. String source
)

Removes the v parameter added by cacheBustScripts.

Implementation

String removeCacheBust(String source) {
  return source.replaceAllMapped(_scriptRef, (Match m) {
    final List<String> params = _queryWithoutBust(m.group(2));
    return params.isEmpty ? m.group(1)! : '${m.group(1)}?${params.join('&')}';
  });
}