I'm able to identify all images of type (SVG) and append a cachebreaking date string in the console log.
allImg = document.querySelectorAll('img[src$=".svg"');
imgTime = Date.now();
allImg.forEach(img => console.log(img.src + '#' + imgTime));
I've been looking at this solution, but it's only for individual filenames, not multiple images: https://stackoverflow.com/a/1077051/3787666
Any help appreciated.